How to Distinguish service name between multiple services running on a single JVM? #11986
Unanswered
rahjesh-vunet
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have multiple services (war files) running in a JBoss server. As Opentelemetry Java agent is instrumenting the JVM there is no way to distinguish the traces from different services.
Referred these links.
#10672
#10537
I tried the following.
1.In the OTel collector, parse the span.attributes.http.route and get the context name and use it as service. But this works only for the root spans. The children spans don't have span.attributes.http.route. This ends up having rott span with correct service name and the other spans with "unknown_service:java"
2.We are storing the traces data in CH. Used the SQL to get the service name from the span.attributes.http.route. But here also it was very difficult to traverse the unknown level of parents to reach the root span.
Do you have any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions