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
importsentry_sdkimporthttpxdefmain():
print("Headers in isolation scope (correctly propagated):")
forheader, valueinsentry_sdk.get_isolation_scope().iter_headers():
print(header, value)
print("")
print(
"Headers not propagated on outgoing request outside of transaction (but should be):"
)
print(httpx.get("http://httpbin.org/get").text)
print("")
withsentry_sdk.start_transaction(name="main", sampled=True) ast:
print("Headers on the transaction (not propagated, but should be):")
forheader, valueint.iter_headers():
print(header, value)
print("")
print("The transaction headers, not the incoming ones, are propagated:")
print(httpx.get("http://httpbin.org/get").text)
if__name__=="__main__":
sentry_sdk.init(
traces_sample_rate=1.0,
)
main()
How do you use Sentry?
Sentry Saas (sentry.io)
Version
latest master
Steps to Reproduce
Make file
main.py
:Run commands:
export SENTRY_TRACE="00000000000000000000000000000000-0000000000000000"
export SENTRY_BAGGAGE="sentry-placeholder=asdf"
python main.py
Expected Result
Incoming trace is propagated, per spec
Actual Result
Trace is ignored. Root cause is having separate places where we store trace information (#4032)
The text was updated successfully, but these errors were encountered: