-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(instrumentation): fix high cardinality span name #10577
Conversation
ea17c5c
to
797d852
Compare
What is the next step on this PR? |
First, we should evaluate the change. The noticeable change is that the root span name of OTEL changes from |
@hbagdi And if possible, we should do this quickly. The customer wants this change before next week, which leaves us 2 days for evaluating and reviewing/merging both PRs, and verification of the fix. |
797d852
to
6a9a31d
Compare
@StarlightIbuki is there a existing case we can learn about naming pattern for spans? (For example, what does nginx's opentelemtry module do?) Also could you share the difference (either in a dashboard or in your words) before and after the change? I'm asking this because most of us doesn't have sufficient knowledge on this area, and I would like us to learn from examples and not just making decisions we thought were reasonable. |
@fffonion The default value for span names and resource names: https://github.com/DataDog/nginx-datadog/#:~:text=Create%20one%20span%20per%20request |
e713ed6
to
07ea1b4
Compare
b7e5332
to
93c4f27
Compare
That item is checked but there isn't any changelog entry. |
93c4f27
to
f7a54a0
Compare
rename spans to ensure lower cardinality initially spans included dymanic information in their names (path) that produced a large range of information that made filtering difficult
remove .internal from the span names prefixes where not needed clean up comments that are not needed
Co-authored-by: Samuele Illuminati <[email protected]>
af38391
to
5e58a63
Compare
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.
we've kept this open for a while to discuss the chosen names, which have been updated accordingly, merging this now.
Summary
High cardinality span names (operation name for Datadog) causes the spans unable to group, and not able to help analysis in the dashboard.
We reorgnize the span names, to handle the cardinality with "resource" field for Datadog. This PR is to modified shared code for both CE and EE involved in this fix
Checklist
Full changelog
Issue reference
Fix FTI-4882
KAG-1126