Skip to content

Conversation

@dashpole
Copy link
Contributor

Fixes #5753

The added test fails on main, but passes after the fix.

@dashpole dashpole changed the title fix duplicate instrumentation memory leak Aug 28, 2024
@dashpole dashpole added area:metrics Part of OpenTelemetry Metrics bug Something isn't working labels Aug 28, 2024
@dashpole
Copy link
Contributor Author

@codecov
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.5%. Comparing base (080a198) to head (bb273ce).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5754   +/-   ##
=====================================
  Coverage   84.5%   84.5%           
=====================================
  Files        272     272           
  Lines      22661   22759   +98     
=====================================
+ Hits       19154   19252   +98     
  Misses      3167    3167           
  Partials     340     340           

see 1 file with indirect coverage changes

@XSAM XSAM merged commit e47618f into open-telemetry:main Aug 29, 2024
@dashpole dashpole deleted the fix_mem_leak branch August 29, 2024 17:55
@XSAM XSAM added this to the v1.30.0 milestone Sep 9, 2024
XSAM added a commit that referenced this pull request Sep 10, 2024
### Added

- Support `OTEL_EXPORTER_OTLP_LOGS_INSECURE` and
`OTEL_EXPORTER_OTLP_INSECURE` environments in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`. (#5739)
- The `WithResource` option for `NewMeterProvider` now merges the
provided resources with the ones from environment variables. (#5773)
- The `WithResource` option for `NewLoggerProvider` now merges the
provided resources with the ones from environment variables. (#5773)
- Add UTF-8 support to `go.opentelemetry.io/otel/exporters/prometheus`.
(#5755)
### Fixed

- Fix memory leak in the global `MeterProvider` when identical
instruments are repeatedly created. (#5754)
- Fix panic instruments creation when setting meter provider. (#5758)
- Fix panic on instruments creation when setting meter provider. (#5758)
- Fix an issue where `SetMeterProvider` in `go.opentelemetry.io/otel`
might miss the delegation for instruments and registries. (#5780)

### Removed

- Drop support for [Go 1.21](https://go.dev/doc/go1.21). (#5736, #5740,
#5800)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:metrics Part of OpenTelemetry Metrics bug Something isn't working

4 participants