Skip to content

metric: add Enabled method to synchronous instruments - #7763

Merged
pellared merged 5 commits into
open-telemetry:mainfrom
pellared:issue-7681
Jan 12, 2026
Merged

metric: add Enabled method to synchronous instruments#7763
pellared merged 5 commits into
open-telemetry:mainfrom
pellared:issue-7681

Merge branch 'main' into issue-7681

2610f0b
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 12, 2026 in 1s

86.1% (-0.2%) compared to 7e1ff96

View this Pull Request on Codecov

86.1% (-0.2%) compared to 7e1ff96

Details

Codecov Report

❌ Patch coverage is 20.00000% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.1%. Comparing base (7e1ff96) to head (2610f0b).

Files with missing lines Patch % Lines
internal/global/instruments.go 0.0% 32 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #7763     +/-   ##
=======================================
- Coverage   86.2%   86.1%   -0.2%     
=======================================
  Files        302     302             
  Lines      22002   22042     +40     
=======================================
+ Hits       18981   18985      +4     
- Misses      2640    2676     +36     
  Partials     381     381             
Files with missing lines Coverage Δ
metric/noop/noop.go 100.0% <100.0%> (ø)
metric/syncfloat64.go 100.0% <ø> (ø)
metric/syncint64.go 100.0% <ø> (ø)
sdk/metric/instrument.go 97.5% <ø> (ø)
sdk/metric/internal/x/x.go 0.0% <ø> (ø)
internal/global/instruments.go 51.2% <0.0%> (-12.5%) ⬇️

... and 2 files with indirect coverage changes

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