-
Notifications
You must be signed in to change notification settings - Fork 283
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
Google PubSub DD service name is hardcoded #7209
Comments
I'm facing the same issue. This is a problem because if you don't set the service name the traces don't show up in the dashboard of the service. |
Other instrumentations (like jms, kafka) have a so called "legacy tracing mode". By default, the receiver has the service name of the framework used (i.e. Google pubsub has no options to switch between those two modes. However there is a global flag to remove all those "synthetic" services and always use the same service name for all the span. This is possible by adding Let us know if this will fit |
Thanks for the reply @amarziali! Speaking personally here, most of the integration boundaries automatically get detected perfectly, such as when I query elasticsearch, we see the request go into the elasticsearch APM integration which is super handy. What I'm primarily asking for here is the second graph. Once I take the bytes out of pubsub, such as with my The same thing happens in reverse on the flame graph for API calls to Elasticsearch, we see my service spans up to the point where Elasticsearch is called, and then it transfers the span ownership to I'd prefer to not enable that integration-service-name feature, because that would also remove the outgoing API calls, such as the Elasticsearch integration detection. In a way it works great for outgoing spans, but not inbound spans such as pubsub |
Thanks for the quick reply. I can keep track of this as feature request and see if I can quickly implement a legacy tracing style setting also for pubsub that will fit your needs |
Thank you, @amarziali! |
@david-fennessey I just opened a PR for it. The instruction to disable the legacy tracing are in the PR description. 🎁 |
Thank you, @amarziali for the fast turnaround! I'll be happy to test it out when it's live :) |
No worries it will be available with |
Environment:
Issue
When using the automated instrumentation for DataDog in JVM languages, when we use the Service Activator pattern within Spring Boot + PubSub, which is recommended by Google link, we notice that the spans do get correctly created, however, it looks like the DD Service name is hardcoded to always use
google-pubsub
as a service name linkThis is not ideal because we would like the spring.consume operation to live inside the service which is calling that function, so that we can keep all of their operations (whether it be REST, GRPC, PubSub) inside one APM dashboard.
There is a workaround that we rolled out, which is to reassign the span upon receiving it, however, it'd be great if the pubsub decorator could respect the DD tags of the service.
Our workaround makes it go from this
To this:
The text was updated successfully, but these errors were encountered: