-
Notifications
You must be signed in to change notification settings - Fork 309
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
Support for sampling priority #208
Comments
This is definitely on the roadmap. I'll keep this issue updated when we start working on it. |
@rochdev does dd-trace-js currently support any distributed tracing? E.g. reading/writing x-datadog-trace-id/span-id headers? I did a quick grep and it doesn't look like it, but may have missed it. |
@stephenh Yes, it is supported by using OpenTracing's inject and extract methods which will handle these headers for you. Supported modules like For our implementation, see src/opentracing/propagation/text_map.js |
@rochdev ah thanks! Apologies, I did something really dumb when searching for the headers. Any guesses about how far out sampling priority is? We just start poking around at "have engineers opt-in their requests for end-to-end distributed tracing" (we have too many requests to log everything), and basically everything goes through graphql, so it won't be terribly useful until dd-trace-js reads/forwards the |
@rochdev I'd really like to have this. Can I submit a PR? In theory just watch for the incoming header and then have sampler somehow check the span's context? Not entirely sure how to get from span -> the text map-created context. |
@stephenh Of course! If you prefer to wait we plan to implement this fairly soon as well. For the headers you should be able to look at any one of our tracers that supports sampling priority and implement the same logic. About your last point, I'm not sure I understand correctly what you mean. Can you clarify? |
@rochdev sweet. How soon is soon? :-) If it's "not this week", I might poke around.
Well, I was looking at Sampler's FWIW I haven't looked at other impls yet, but I mainly just want this to collect + respect + pass-along the |
@stephenh In the coming weeks but definitely not this week. Makes sense for the header. There is not much more than that to it either I think, but feel free to open a PR and we'll discuss if there are any adjustments to make. |
I'm poking around a bit. I'm curious about this line: https://github.com/DataDog/dd-trace-js/blob/master/src/opentracing/span_context.js#L12 AFAICT in But in the That doesn't sound right? |
Note that this does not provide a user API for setting user keep/discard, instead it merely respects any existing priority headers. Fixes DataDog#208.
Note that this does not provide a user API for setting user keep/discard, instead it merely respects any existing priority headers. Fixes DataDog#208.
👋,
I'm new to DD, but it seems like most other DD libraries have some support for this.
Is adding this to the node library in the roadmap?
Thank you.
The text was updated successfully, but these errors were encountered: