Skip to content

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Jul 18, 2025

Description

Downgrades opentelemetry-go dependencies effectively reverting #13289 and others

❗ Known Issues ❗

  • Due to a bug in the prometheus exporter, if you are configuring a prometheus exporter, the collector's internal metrics will be emitted with an unexpected suffix in its name. For example, the metric otelcol_exporter_sent_spans__spans__total instead of otelcol_exporter_sent_spans_total. The workaround is to manually configure without_units: true in your prometheus exporter config

    service:
      telemetry:
        metrics:
          readers:
            - pull:
                exporter:
                  prometheus:
                    host: 0.0.0.0
                    port: 8888
                    without_units: true

    If you are using the collector's default Prometheus exporter for exporting internal metrics you are unaffected.

@mx-psi mx-psi changed the base branch from main to release/v0.130.x July 18, 2025 15:57
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

not seeing downgrades of the prometheus exporter in this change. otelconf will need downgrading as well

Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

This probably needs a changelog too

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten marked this pull request as ready for review July 18, 2025 16:15
@codeboten codeboten requested a review from a team as a code owner July 18, 2025 16:15
Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
@codeboten
Copy link
Contributor

This probably needs a changelog too

changelog added

Co-authored-by: Yang Song <songy23@users.noreply.github.com>
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
@codeboten
Copy link
Contributor

Thanks for the wordsmithing @songy23

Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.52%. Comparing base (91ec67d) to head (caebebd).
Report is 1 commits behind head on release/v0.130.x.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           release/v0.130.x   #13429      +/-   ##
====================================================
- Coverage             91.53%   91.52%   -0.02%     
====================================================
  Files                   528      528              
  Lines                 29469    29471       +2     
====================================================
- Hits                  26974    26972       -2     
- Misses                 1969     1972       +3     
- Partials                526      527       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bogdandrutu bogdandrutu merged commit d82267d into open-telemetry:release/v0.130.x Jul 18, 2025
34 checks passed
mx-psi added a commit that referenced this pull request Jul 21, 2025
bogdandrutu pushed a commit that referenced this pull request Jul 21, 2025
Reverts #13429 so that we can bump
to the to-be-released bugfix version that adds
open-telemetry/opentelemetry-go/pull/7044
mx-psi added a commit that referenced this pull request Jul 22, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Prepares release v0.130.1/v1.36.1 to release #13429

<!-- Issue number if applicable -->
#### Link to tracking issue

Updates #13381
Relates to open-telemetry/opentelemetry-go/issues/7039

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
songy23 added a commit to songy23/opentelemetry-service that referenced this pull request Jul 23, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Downgrades opentelemetry-go dependencies effectively reverting open-telemetry#13289
and others

- Due to a
[bug](open-telemetry/opentelemetry-go#7039) in
the prometheus exporter, if you are configuring a prometheus exporter,
the collector's internal metrics will be emitted with an unexpected
suffix in its name. For example, the metric
`otelcol_exporter_sent_spans__spans__total` instead of
`otelcol_exporter_sent_spans_total`. The workaround is to manually
configure `without_units: true` in your prometheus exporter config

  ```yaml
  service:
    telemetry:
      metrics:
        readers:
          - pull:
              exporter:
                prometheus:
                  host: 0.0.0.0
                  port: 8888
                  without_units: true
  ```
If you are using the collector's default Prometheus exporter for
exporting internal metrics you are unaffected.

---------

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: alex boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Jul 23, 2025
cherry-pick of
d82267d

`go.opentelemetry.io/otel/exporters/prometheus v0.59.1` does not fully
fix the metric name issue so we have to revert to v0.58.0

Downgrades opentelemetry-go dependencies effectively reverting #13289
and others

- Due to a
[bug](open-telemetry/opentelemetry-go#7039) in
the prometheus exporter, if you are configuring a prometheus exporter,
the collector's internal metrics will be emitted with an unexpected
suffix in its name. For example, the metric
`otelcol_exporter_sent_spans__spans__total` instead of
`otelcol_exporter_sent_spans_total`. The workaround is to manually
configure `without_units: true` in your prometheus exporter config

 ```yaml
  service:
    telemetry:
      metrics:
        readers:
          - pull: 
              exporter: 
                prometheus: 
                  host: 0.0.0.0 
                  port: 8888 
                  without_units: true 
 ``` 
     
If you are using the collector's default Prometheus exporter for
exporting internal metrics you are unaffected.

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
Co-authored-by: alex boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants