-
Notifications
You must be signed in to change notification settings - Fork 530
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
Prefix service graph extra dimensions #2335
Prefix service graph extra dimensions #2335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR will impact cloud customers and cannot be merged until we understand and communicate that. It is a breaking change to metrics as well as a bump in metrics cardinality.
@cyrille-leclerc @gouthamve can you drive understanding and communicating the impact with teams involved? It's a breaking change and potentially have cost implication with Cardinality increase. Thanks! |
@joe-elliott thanks, that makes sense. Any thoughts on introducing this in a non breaking way? For example, adding syntax to be explicit about desired behaviour, like |
OTEL service graph processor does prefix: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/servicegraphprocessor/processor.go#L293 |
If this is a breaking change, how will this change impact how our customers use things? What will they need to change or update to correct for this breaking change? |
@joe-elliott @Jxlam-pdx point taken. Sorry for the delay, @gouthamve is busy at KubeCon this week. |
Have we started the review on current customers? Is there any update to that end? |
39ffefa
to
263565a
Compare
As per discussion in #1860, made this opt-in via |
If we are intending on adding you should touch at least these files: |
@ie-pham thanks! I did so, but now am completely stumped as to why CI is failing :( everything works locally and the error+ location in CI doesn't make any sense... Maybe you have a clue? 🙏 |
@domasx2
|
f52f47b
to
ce3ce0d
Compare
Thanks @ie-pham , resolved :) |
This LGTM |
@joe-elliott can you take a look again? Feature is now opt-in, no longer a breaking change |
ce3ce0d
to
1ae49dc
Compare
hold on with merging this for a bit, still some ongoing discussions on app o11y side |
1ae49dc
to
8d5a7b4
Compare
good to merge 👍 |
What this PR does:
In the service graph processor, when adding custom dimensions to metrics, values can be overridden if parent and children span have the same attribute but with different values. The attributes of the last span to be processed are the ones selected for the metrics. This results in inconsistent behaviour, and does not match what otel collector service graph connector does.
One use case is to add
service.namespace
dimension, in case you want services to be identified by both name and namespace. You have to have a label for both client and server.This PR prefixes values coming from client span with
client_
and values coming from server span withserver_
.Which issue(s) this PR fixes:
Fixes #1860
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]