You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we're going to build upon OpenTelemetry and leverage this behind the scenes for Tracing, we don't want to add complexity for people who are currently using Sentry for Tracing. One important aspect of that is initialization.
At the moment if you want to use Sentry with OpenTelemetry for Tracing, initialization is a two step process.
options.UseOpenTelemetry();// <-- Configure Sentry to use OpenTelemetry trace information
});
And the stuff you configure in step 1 has to match the stuff you configure in Step 2... You can't call UseOpenTelemetry when initializing Sentry if you haven't called UseSentry when initializing OpenTelemetry.
Ideally, particularly if users don't even know (or care) that OpenTelemetry is being used behind the scenes, this would be a seamless one step process.
The text was updated successfully, but these errors were encountered:
Related to:
Overview
If we're going to build upon OpenTelemetry and leverage this behind the scenes for Tracing, we don't want to add complexity for people who are currently using Sentry for Tracing. One important aspect of that is initialization.
At the moment if you want to use Sentry with OpenTelemetry for Tracing, initialization is a two step process.
sentry-dotnet/samples/Sentry.Samples.OpenTelemetry.Console/Program.cs
Lines 23 to 30 in bd62cf0
sentry-dotnet/samples/Sentry.Samples.OpenTelemetry.Console/Program.cs
Lines 16 to 21 in bd62cf0
And the stuff you configure in step 1 has to match the stuff you configure in Step 2... You can't call
UseOpenTelemetry
when initializing Sentry if you haven't calledUseSentry
when initializing OpenTelemetry.Ideally, particularly if users don't even know (or care) that OpenTelemetry is being used behind the scenes, this would be a seamless one step process.
The text was updated successfully, but these errors were encountered: