File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
develop-docs/sdk/telemetry/traces Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ Any values on the DSC should be propagated "as is" - this includes values like "
171
171
SDKs should recognize incoming requests as "instrumented" or "traced" when at least one of the following applies:
172
172
173
173
- The incoming request has a ` sentry-trace ` header
174
- - The incoming request has a ` baggage ` header containing one or more keys starting with "` sentry- ` "
174
+ - The incoming request has a ` sentry-trace ` header and ` baggage ` header containing one or more keys starting with "` sentry- ` "
175
175
176
176
After the DSC of a particular trace has been frozen, API calls like ` set_user ` should have no effect on the DSC.
177
177
@@ -193,7 +193,7 @@ def on_incoming_request(request):
193
193
# Request comes from an old SDK which doesn't support Dynamic Sampling Context yet
194
194
# --> we don't propagate baggage for this trace
195
195
current_transaction.dynamic_sampling_context_frozen = True
196
- elif request.has_header(" baggage" ) and has_sentry_value_in_baggage_header(request):
196
+ elif request.has_header(" sentry-trace " ) and request.has_header( " baggage" ) and has_sentry_value_in_baggage_header(request):
197
197
current_transaction.dynamic_sampling_context_frozen = True
198
198
current_transaction.dynamic_sampling_context = baggage_header_to_dict(request.headers.baggage)
199
199
You can’t perform that action at this time.
0 commit comments