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

Fixes broken sdk/metric benchmarks #2459

Merged
merged 2 commits into from Dec 16, 2021

Conversation

MadVikingGod
Copy link
Contributor

Currently sdk/metric benchmarks panic trying to create an exact aggregator. These were removed in #2348. This fix retains benchmarks around the creation of histograms, but moves them into a histogram creation.

You can see the panic: https://gist.github.com/MadVikingGod/f7f1eb41aa83be4729481f7c10415be5

@MadVikingGod MadVikingGod added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 15, 2021
@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #2459 (1ecd3f2) into main (4654d78) will decrease coverage by 0.0%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2459     +/-   ##
=======================================
- Coverage   76.3%   76.2%   -0.1%     
=======================================
  Files        173     173             
  Lines      12010   12010             
=======================================
- Hits        9165    9163      -2     
- Misses      2600    2602      +2     
  Partials     245     245             
Impacted Files Coverage Δ
sdk/trace/batch_span_processor.go 83.4% <0.0%> (-1.1%) ⬇️

ctx := context.Background()
fix := newFixture(b)
labs := makeLabels(1)
mea := fix.meterMust().NewInt64Histogram(name)
mea := fix.meterMust().NewInt64Histogram("int64.histogram")
Copy link
Member

Choose a reason for hiding this comment

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

Does the name suffix hardcode something? Not clear how changing the name fixes this.

Copy link
Member

Choose a reason for hiding this comment

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

@Aneurysm9 Aneurysm9 merged commit 134a610 into open-telemetry:main Dec 16, 2021
@MadVikingGod MadVikingGod deleted the fix-sdk-metric-benchmark branch December 16, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants