-
Notifications
You must be signed in to change notification settings - Fork 527
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
Metrics-Generators: root server span prefers Peer.Node
to the fixed user
as client service
#4453
Comments
The three "peer attributes" we have by default are here: tempo/modules/generator/processor/servicegraphs/servicegraphs.go Lines 60 to 62 in f00ed6a
All three of these are used to indicate services that are being connected to (a database or peer service). Are there any otel attributes whose semantic meaning is "the service that is connecting to me"? That would make sense to substitute in place of "user". |
For root server span( tempo/modules/generator/processor/servicegraphs/config.go Lines 43 to 45 in f00ed6a
we could just use |
Ok, that's a fair point. I misread the details on that one. Do you have instrumentation that does this? Can you share a trace? I've never seen one with My only concern now is we really wouldn't want to use |
trace.json Yes, tempo/modules/generator/processor/servicegraphs/servicegraphs.go Lines 193 to 223 in 2b00b4e
|
I'm thinking maybe we split peer client from peer server services? That way we can discover, store and metric them independently. wdyt? |
I think it's good, thanks for your support. |
Hi, i'm using metrics-generator to generate a service graph, and many series of the metric
traces_service_graph_request_total
have the labelclient
with valueuser
, which isn't what I expected.I checked the raw trace data and these root server spans all contain the attribute
peer.service
.I checked the code and there is the following note:
We check if the span we have is the root span, and if so, we set the client service to “user”.
if we could get closer to the logic of the client span here, i.e. prioritize
e.PeerNode
as the client service for the root server span.The text was updated successfully, but these errors were encountered: