-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distributed tracing doesn't work in Django #456
Comments
Thanks @keattang ! We'll investigate on that as soon the current 0.12 is out! I'll keep you updated. |
The monkeypatch works for us, but it would be great to see this fixed in the library. |
Hi all, looking into this issue now. From what I can tell this behaviour is defined in the WSGI spec: https://www.python.org/dev/peps/pep-3333/#environ-variables so this shouldn't be an issue with just Django. I think it makes sense to change our HTTP propagator to check for the converted headers as well when extracting. |
@praseodym @keattang we'll be including the fix for this issue in our upcoming release! 😄 |
Specifying
DISTRIBUTED_TRACING=True
in the Django Datadog settings doesn't work because the propagator looks for thex-datadog-trace-id
header in the Djangorequest.META
object which converts the header name toHTTP_X_DATADOG_TRACE_ID
. For more details on this see here.In order to work around this I've had to monkey patch the library so that it looks for the headers with the correct keys:
The text was updated successfully, but these errors were encountered: