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

[servicegraphprocessor, servicegraphconnector] Measure latency in seconds instead of milliseconds #27665

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

mapno
Copy link
Contributor

@mapno mapno commented Oct 13, 2023

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:

@mapno mapno requested a review from jpkrohling as a code owner October 13, 2023 13:59
@mapno mapno requested a review from a team October 13, 2023 13:59
@github-actions github-actions bot added the processor/servicegraph Service graph processor label Oct 13, 2023
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix
Copy link
Member

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.

processor/servicegraphprocessor/processor.go Outdated Show resolved Hide resolved
@@ -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
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added!

mapno and others added 2 commits October 17, 2023 09:33
Co-authored-by: Curtis Robert <92119472+crobert-1@users.noreply.github.com>
@crobert-1
Copy link
Member

Failing integration test is #26293, I've added it as a frequency of the issue. It's unrelated to this change.

@jpkrohling
Copy link
Member

@mapno, I think this got in conflict with your flush interval PR. Do you mind resolving the conflict?

@jpkrohling jpkrohling merged commit c9f1865 into open-telemetry:main Oct 24, 2023
75 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 24, 2023
sigilioso pushed a commit to carlossscastro/opentelemetry-collector-contrib that referenced this pull request Oct 27, 2023
…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>
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/servicegraph Service graph processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants