Skip to content

Commit acf14a4

Browse files
Removed redundant guard
1 parent 114127f commit acf14a4

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/Sentry/SentryMessageHandler.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,6 @@ private void PropagateTraceHeaders(HttpRequestMessage request, string url, ISpan
133133
}
134134
}
135135

136-
// We only propagate trace headers for Sentry's native instrumentation. It isn't possible to propagate
137-
// headers when OTEL instrumentation is used since the traceId can be SentryId.Empty if there is no active
138-
// OTEL span... which would result in an exception being thrown when trying to create the
139-
// DynamicSamplingContext.
140-
if (_options?.Instrumenter is Instrumenter.OpenTelemetry)
141-
{
142-
return;
143-
}
144-
145136
if (_options?.TracePropagationTargets.MatchesSubstringOrRegex(url) is true or null)
146137
{
147138
AddSentryTraceHeader(request, parentSpan);

0 commit comments

Comments
 (0)