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

[processor/spanmetricsprocessor] Add ms unit to latency buckets #13423

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

Yamakaky
Copy link
Contributor

@Yamakaky Yamakaky commented Aug 18, 2022

Description: Define the latency metric unit as milliseconds for spanmetricsprocessor.

Testing: unit tests

Documentation: the metric was already documented as being in milliseconds.

@Yamakaky Yamakaky requested a review from a team as a code owner August 18, 2022 18:10
@Yamakaky Yamakaky requested a review from dmitryax August 18, 2022 18:10
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 18, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Yamakaky / name: Yamakaky (4ad768f)

@Yamakaky Yamakaky force-pushed the spanmetrics-unit branch 2 times, most recently from 22093ec to c6046c0 Compare August 18, 2022 18:30
Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

LGTM. cc @albertteoh as code owner

@Yamakaky
Copy link
Contributor Author

Should I update the changelog?

@dmitryax
Copy link
Member

Yes, I believe it should be mentioned in the changelog. please create an enhancement entry in unreleased directory

@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label Aug 18, 2022
Copy link
Contributor

@albertteoh albertteoh left a comment

Choose a reason for hiding this comment

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

LGTM.

Forgive my ignorance, but what are the use cases for the optional metric units in the telemetry data itself? My understanding, at least for prometheus, is that units are not stored with the metric data but, instead, are carried in the metric name itself like http_request_duration_seconds.

@Yamakaky
Copy link
Contributor Author

Yamakaky commented Aug 19, 2022

Hum, relevant references:

Based on that, I think the metric should be renamed to something like span.duration and potentially use seconds as units. What do you think?

Also, the unit is part of the data model https://opentelemetry.io/docs/reference/specification/metrics/datamodel/#opentelemetry-protocol-data-model. I don't know if many vendors use it, but it would allow auto unit discovery.

@bogdandrutu bogdandrutu merged commit 05d3a37 into open-telemetry:main Aug 19, 2022
@Yamakaky Yamakaky deleted the spanmetrics-unit branch August 19, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants