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

Redefine gauge in Prometheus example to be a Gauge #3498

Merged
merged 5 commits into from Nov 30, 2022

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Nov 29, 2022

Fix #3493

@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Nov 29, 2022
@dashpole
Copy link
Contributor

UpDown counters are converted to prometheus gauges: https://github.com/open-telemetry/opentelemetry-go/blob/main/exporters/prometheus/exporter.go#L191. Since many OTel instruments (sync UpDownCounter, async Gauge, async UpDownCounter) all convert to prometheus gauges, this was trying to demonstrate the synchronous gauge case.

We could change it to an async gauge if that makes it less confusing.

@MrAlias
Copy link
Contributor Author

MrAlias commented Nov 29, 2022

We could change it to an async gauge if that makes it less confusing.

SGTM. I'll make the change.

@MrAlias MrAlias changed the title Rename gauge var name in Prometheus example Redefine gauge Prometheus example to be a Gauge Nov 29, 2022
@MrAlias MrAlias changed the title Redefine gauge Prometheus example to be a Gauge Redefine gauge in Prometheus example to be a Gauge Nov 29, 2022
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Merging #3498 (6ec4b6a) into main (289a612) will decrease coverage by 0.0%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #3498     +/-   ##
=======================================
- Coverage   78.0%   78.0%   -0.1%     
=======================================
  Files        165     165             
  Lines      11755   11755             
=======================================
- Hits        9179    9177      -2     
- Misses      2380    2382      +2     
  Partials     196     196             
Impacted Files Coverage Δ
sdk/trace/batch_span_processor.go 80.2% <0.0%> (-0.9%) ⬇️

@MadVikingGod MadVikingGod merged commit 291aaa0 into open-telemetry:main Nov 30, 2022
@MrAlias MrAlias deleted the prom-example-rename branch November 30, 2022 21:18
@MrAlias MrAlias added this to the Metric v0.34.0 milestone Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:exporter:prometheus Related to the Prometheus exporter package Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

UpDownCounter is not a gauge
5 participants