Skip to content
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 histogram metrics miss unit #34511

Merged

Conversation

Frapschen
Copy link
Contributor

@Frapschen Frapschen commented Aug 8, 2024

Description:

I found the servicegraph histogram metrics missing unit.
This PR will add a proper unit to metrics like spanmetrics connector does.

Link to tracking Issue:

Testing:

Documentation:

@Frapschen Frapschen requested a review from jpkrohling as a code owner August 8, 2024 10:14
@Frapschen Frapschen requested a review from a team August 8, 2024 10:14
@github-actions github-actions bot requested review from JaredTan95 and mapno August 8, 2024 10:15
@t00mas
Copy link
Contributor

t00mas commented Aug 16, 2024

I find the change straightforward and LGTM.

I'm more concerned about the situations around this being a breaking change vs. when it isn't.

I'm leaning towards this being a breaking change as it is now, so it should either be declared as breaking, or non-breaking if we first have this as opt-in. Then it can be moved to opt-out later on.

@Frapschen
Copy link
Contributor Author

@t00mas I believe it will not introduce breaking change if the user uses prometheusexporter or prometheusremotewriteexporter to exporter metrics.

however, if the user uses clickhouseexporter(save data in native OTLP format), it will be a breaking change.

Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Codeowners, could you take a look? cc: @jpkrohling @mapno @JaredTan95

@jpkrohling
Copy link
Member

cc @mapno

Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, sorry about the merge conflicts though :/

@Frapschen
Copy link
Contributor Author

@jpkrohling please merge #34933 first

@jpkrohling
Copy link
Member

Merged that one.

@Frapschen Frapschen force-pushed the fix-hisgogram-metrics-miss-unit branch from dec85a1 to e670ec9 Compare September 2, 2024 15:37
@Frapschen Frapschen force-pushed the fix-hisgogram-metrics-miss-unit branch from e670ec9 to f9aaee7 Compare September 2, 2024 16:13
@Frapschen
Copy link
Contributor Author

@jpkrohling Ready to merge

@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Sep 4, 2024
@codeboten codeboten merged commit 562c01d into open-telemetry:main Sep 5, 2024
163 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 5, 2024
@Frapschen Frapschen deleted the fix-hisgogram-metrics-miss-unit branch September 5, 2024 16:14
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
…try#34511)

I found the servicegraph histogram metrics missing unit.
This PR will add a proper unit to metrics like [spanmetrics connector
does.]( metric.SetUnit(p.config.Histogram.Unit.String()))

Signed-off-by: Murphy Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/servicegraph ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants