-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Updated data_dog_trace/tracing to reflect awaited span attributes #4951
Conversation
Hi! Thanks for the suggestion.
What backend is this? Is this something to fix integration with DataDog's servers, or is this something to work better with your application? I ask because this will be a breaking change for anyone who's currently using this tracer. Their dashboards will break because the tags they're watching will suddenly have no data. For that reason we'd have to be very careful about how this is rolled out (if it's released at all). |
I'm sorry I should have been clearer. I am a Datadog employee so I am talking about Datadog's backend. And "tests from our side" meant tests on dd-trace-rb repo. The current implementation is broken and does not follow our (Datadog) specification. Our specification is similar to OpenTelemetry's one. For example, API Catalog requires the correct GraphQL span attributes and tags to work (and currently it does not) We are currently working on fixing and communicating about breaking changes to affected organisations. |
Ok, that sounds great -- thanks for sharing that context. I definitely want to have a first-class DataDog tracer for GraphQL-Ruby. I googled for the DataDog GraphQL spec but couldn't find it. Could you share a link to it? I'm curious to learn more about how it should work... For compatibility's sake, could you please put the new code in a new trace module? For example,
I think an approach like that would set up new users to start on the right foot while allowing existing users to migrate over at their own pace. What do you think of that approach? |
Hello ! Unfortunately the Datadog GraphQL spec is private, but it is similar to the OpenTelemetry one (https://opentelemetry.io/docs/specs/semconv/graphql/graphql-spans/) I like this approach, but after discussing this issue with other Datadog Ruby developers, we may end up hosting the new trace module on dd-trace-rb repo. If we ever change our minds, we will reopen this PR. Thank you ! |
Why
This PR changes the span attributes for Datadog trace/tracing module to comply with our backend
What
trace
method specific to data_dog_trace to factorise the new codeAdditional notes
This PR will be updated with the tests from our side
Other PRs will be created for 2.1.x, 2.0.x and 1.13.x backport