-
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
[servicegraphprocessor, servicegraphconnector] Measure latency in seconds instead of milliseconds #27665
[servicegraphprocessor, servicegraphconnector] Measure latency in seconds instead of milliseconds #27665
Conversation
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: bug_fix |
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.
Even though this is a breaking change, I think the change type is correctly set to bug fix.
@@ -306,7 +306,7 @@ func verifyDuration(t *testing.T, m pmetric.Metric) { | |||
assert.Equal(t, 1, dps.Len()) | |||
|
|||
dp := dps.At(0) | |||
assert.Equal(t, float64(1000), dp.Sum()) // Duration: 1sec |
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.
It might be worthwhile to add some tests with the feature gate enabled to ensure we're getting the ms
units when we're supposed to.
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.
Added!
Co-authored-by: Curtis Robert <92119472+crobert-1@users.noreply.github.com>
Failing integration test is #26293, I've added it as a frequency of the issue. It's unrelated to this change. |
@mapno, I think this got in conflict with your flush interval PR. Do you mind resolving the conflict? |
…onds instead of milliseconds (open-telemetry#27665) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Measures latency in seconds instead of milliseconds, as the metric name indicates. Previously, milliseconds was used. This unit is still available via the feature gate `processor.servicegraph.legacyLatencyUnitMs`. This is a breaking change. **Link to tracking Issue:** <Issue number if applicable> open-telemetry#27488 **Testing:** <Describe what testing was performed and which tests were added.> Tests are updated **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Curtis Robert <92119472+crobert-1@users.noreply.github.com> Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
…onds instead of milliseconds (open-telemetry#27665) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Measures latency in seconds instead of milliseconds, as the metric name indicates. Previously, milliseconds was used. This unit is still available via the feature gate `processor.servicegraph.legacyLatencyUnitMs`. This is a breaking change. **Link to tracking Issue:** <Issue number if applicable> open-telemetry#27488 **Testing:** <Describe what testing was performed and which tests were added.> Tests are updated **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Curtis Robert <92119472+crobert-1@users.noreply.github.com> Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
Description:
Measures latency in seconds instead of milliseconds, as the metric name indicates. Previously, milliseconds was used. This unit is still available via the feature gate
processor.servicegraph.legacyLatencyUnitMs
.This is a breaking change.
Link to tracking Issue: #27488
Testing: Tests are updated
Documentation: