Skip to content

receiver/prometheus: add .ToMetric() directly to pdata.Metric#3427

Closed
odeke-em wants to merge 3 commits into
open-telemetry:mainfrom
orijtech:receiver-prometheus-addToMetricPdata-directly
Closed

receiver/prometheus: add .ToMetric() directly to pdata.Metric#3427
odeke-em wants to merge 3 commits into
open-telemetry:mainfrom
orijtech:receiver-prometheus-addToMetricPdata-directly

Conversation

@odeke-em
Copy link
Copy Markdown
Member

Adds point-to-point converters for the various types so that
we can eventually replace with a direct Prometheus to OTLP
conversion. This change solely focuses on

(*metricFamilyPdata).ToMetric()

Updates #3137

@odeke-em odeke-em force-pushed the receiver-prometheus-addToMetricPdata-directly branch from dfce922 to 6312baf Compare June 14, 2021 18:37
@alolita alolita requested a review from dashpole June 15, 2021 07:06
@alolita alolita requested review from Aneurysm9 and rakyll June 15, 2021 07:07
@github-actions
Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 6, 2021

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Jul 6, 2021
@odeke-em odeke-em force-pushed the receiver-prometheus-addToMetricPdata-directly branch from 6312baf to cf3e5f1 Compare July 7, 2021 01:29
@bogdandrutu bogdandrutu removed the Stale label Jul 9, 2021
odeke-em added 3 commits July 14, 2021 17:10
Adds point-to-point converters for the various types so that
we can eventually replace with a direct Prometheus to OTLP
conversion. This change solely focuses on

    (*metricFamilyPdata).ToMetric()

Updates #3137
@odeke-em odeke-em force-pushed the receiver-prometheus-addToMetricPdata-directly branch from cf3e5f1 to 1ff57db Compare July 15, 2021 00:11
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 17, 2021
…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 added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 17, 2021
…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 added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 17, 2021
…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 added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 17, 2021
…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 added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 17, 2021
…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 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
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 19, 2021
Implements metricGroupPdata toNumberDataPoint 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#3668
Updates PR open-telemetry#3427
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 19, 2021
Implements metricGroupPdata toNumberDataPoint 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#3668
Updates PR open-telemetry#3427
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
Implements metricGroupPdata toNumberDataPoint 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#3668
Updates PR open-telemetry#3427
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
…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 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
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
…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
bogdandrutu pushed a commit that referenced this pull request Jul 21, 2021
…sion (#3667)

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 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
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
Implements metricGroupPdata toNumberDataPoint 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#3668
Updates PR open-telemetry#3427
odeke-em added a commit to orijtech/opentelemetry-collector that referenced this pull request Jul 21, 2021
Implements metricGroupPdata toNumberDataPoint and added unit tests
as well as equivalence tests to ensure the migration will render
the same results.

While here, added TODOs for issue open-telemetry#3691 which found a bug in
which cumulative types weren't using the actual duration start
timestamp. Given that this current change is a translation of prior
logic and has parity checks, making that bug fix would complicate
the PR.

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

While here, added TODOs for issue open-telemetry#3691 which found a bug in
which cumulative types weren't using the actual duration start
timestamp. Given that this current change is a translation of prior
logic and has parity checks, making that bug fix would complicate
the PR.

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

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

While here, added TODOs for issue #3691 which found a bug in
which cumulative types weren't using the actual duration start
timestamp. Given that this current change is a translation of prior
logic and has parity checks, making that bug fix would complicate
the PR.

Updates #3137
Depends on PR #3668
Updates PR #3427
Updates #3691
@bogdandrutu
Copy link
Copy Markdown
Member

Closing this since it seems to be halfway merged, please reopen otherwise

@bogdandrutu bogdandrutu closed this Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants