-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[connector/servicegraph] Fix failed label does not work leads to servicegraph metrics error #32019
[connector/servicegraph] Fix failed label does not work leads to servicegraph metrics error #32019
Conversation
b9ab5d5
to
7c82be5
Compare
fix servicegraph bug(origin open-telemetry#32019)
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.
Thanks for the investigation (#32018) and for the fix.
I disagree with the proposed solution. I believe the root cause for this is that the metric has a label failed
in the first place. Failure should either be indicated as a label with a single metric (ie. traces_service_graph_request_total
), or with a different metric and no label. How it's currently set up is a mix of both, which leaves it a in strange spot.
The way I see forward is doing both approaches.
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.
LGTM, thanks!
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.
Just left a minor suggestion, if you don't mind
@@ -27,6 +27,9 @@ import ( | |||
"go.opentelemetry.io/otel/sdk/metric/metricdata" | |||
"go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest" | |||
"go.uber.org/zap/zaptest" | |||
|
|||
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden" |
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.
I like that you introduced golden
to these tests 💯
ae9cc17
to
6b67c8b
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
360419f
to
c8eef99
Compare
The connector's unit tests are failing? https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/9347048326/job/25723257817?pr=32019
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
|
4dc1700
to
abdea68
Compare
c637b2f
to
00d8fb1
Compare
Co-authored-by: Tomas Pica <tomas.pica@gmail.com>
0fec7bb
to
37f4f88
Compare
Description:
resolve: #32018
Link to tracking Issue: fixes #32018
Testing:
add a unit test to verify this bug fixed
Documentation: <Describe the documentation added