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

receiver/prometheus: add metricGroup.toDistributionPoint pdata conversion #3667

Conversation

odeke-em
Copy link
Member

Implements metricGroupPdata toDistributionPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Updates PR #3427

@odeke-em odeke-em requested review from alolita and a team as code owners July 17, 2021 05:35
@odeke-em odeke-em requested a review from dmitryax July 17, 2021 05:35
@project-bot project-bot bot added this to In progress in Collector Jul 17, 2021
@odeke-em odeke-em force-pushed the receiver-prometheus-metricGroupToDistributionPointPdata-migration branch from c3f2d8e to 7eeb9a3 Compare July 17, 2021 05:36
@odeke-em
Copy link
Member Author

@odeke-em odeke-em force-pushed the receiver-prometheus-metricGroupToDistributionPointPdata-migration branch 3 times, most recently from 662be84 to f3ad1be Compare July 17, 2021 06:48
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 18, 2021
Implements metricGroupPdata toSummaryPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Depends on PR open-telemetry#3667
Updates PR open-telemetry#3427
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 18, 2021
Implements metricGroupPdata toSummaryPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Depends on PR open-telemetry#3667
Updates PR open-telemetry#3427
@alolita
Copy link
Member

alolita commented Jul 19, 2021

@bogdandrutu @Aneurysm9 @jrcamp @rakyll - please review so that this PR can be merged. It is required part of achieving tracing stability.

@alolita alolita added the release:required-for-ga Must be resolved before GA release label Jul 19, 2021
mg.sortPoints()

// for OCAgent Proto, the bounds won't include +inf
// TODO: (@odeke-em) should we also check OpenTelemetry Pdata for bucket bounds?
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey @bogdandrutu that code is from the straight up translation from the prior code. To avoid too many moving parts and to keep parity with the existing code, I am going to file an issue to remind me to investigate and finish that TODO that was added ages ago.

Copy link
Member Author

Choose a reason for hiding this comment

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

I filed https://github.com/open-telemetry/opentelemetry-collector/issues/3684 and I don't think this change is a blocker for this PR as this PR is a translation to directly use pdata. Thanks for the review and for the answer @bogdandrutu!

Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

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

Lgtm, other than the outstanding comment

@odeke-em odeke-em force-pushed the receiver-prometheus-metricGroupToDistributionPointPdata-migration branch from f3ad1be to f67d45d Compare July 21, 2021 03:31
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
Implements metricGroupPdata toSummaryPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Depends on PR open-telemetry#3667
Updates PR open-telemetry#3427
…sion

Implements metricGroupPdata toDistributionPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Updates PR open-telemetry#3427
@odeke-em odeke-em force-pushed the receiver-prometheus-metricGroupToDistributionPointPdata-migration branch from f67d45d to b34aa37 Compare July 21, 2021 03:46
Collector automation moved this from In progress to Reviewer approved Jul 21, 2021
@bogdandrutu bogdandrutu merged commit 996afec into open-telemetry:main Jul 21, 2021
Collector automation moved this from Reviewer approved to Done Jul 21, 2021
@odeke-em odeke-em deleted the receiver-prometheus-metricGroupToDistributionPointPdata-migration branch July 21, 2021 15:51
@odeke-em
Copy link
Member Author

Thanks everyone for the reviews and merge!

odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
Implements metricGroupPdata toSummaryPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Depends on PR open-telemetry#3667
Updates PR open-telemetry#3427
bogdandrutu pushed a commit that referenced this pull request Jul 21, 2021
…3668)

Implements metricGroupPdata toSummaryPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

Updates #3137
Depends on PR #3667
Updates PR #3427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:required-for-ga Must be resolved before GA release
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants