Skip to content

Identifying Users with OpenTelemetry doesn't work #2616

@ldalonzo

Description

@ldalonzo

Package

Sentry

.NET Flavor

.NET Core

.NET Version

7.0.0

OS

Windows

SDK Version

3.39.1

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Instrument an ASP.NET Core with Sentry.OpenTelemetry
  2. Configure Sentry to opt-in for SendDefaultPii
  3. Register a custom IUserFactory to populate the sentry username

Expected Result

The custom user factory gets called and the username is reported to Sentry

Actual Result

The custom IUserFactory is never called. Only the IP address is reported to Sentry.
A similar behaviour applies when setting the username through the hub's ConfigureScope method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions