Add Enabled method to all synchronous instrument interfaces (Float64Counter, Float64UpDownCounter, Float64Histogram, Float64Gauge, Int64Counter, Int64UpDownCounter, Int64Histogram, Int64Gauge,) in go.opentelemetry.io/otel/metric. This stabilizes the synchronous instrument enabled feature, allowing users to check if an instrument will process measurements before performing computationally expensive operations. (#7763)
Add AlwaysRecord sampler in go.opentelemetry.io/otel/sdk/trace. (#7724)
Add go.opentelemetry.io/otel/semconv/v1.39.0 package. The package contains semantic conventions from the v1.39.0 version of the OpenTelemetry Semantic Conventions. See the migration documentation for information on how to upgrade from go.opentelemetry.io/otel/semconv/v1.38.0. (#7783, #7789)
Changed
Exporter in go.opentelemetry.io/otel/exporters/prometheus ignores metrics with the scope go.opentelemetry.io/contrib/bridges/prometheus. This prevents scrape failures when the Prometheus exporter is misconfigured to get data from the Prometheus bridge. (#7688)
Improve performance of concurrent histogram measurements in go.opentelemetry.io/otel/sdk/metric. (#7474)
Add experimental observability metrics in go.opentelemetry.io/otel/exporters/stdout/stdoutmetric. (#7492)
Improve the concurrent performance of HistogramReservoir in go.opentelemetry.io/otel/sdk/metric/exemplar by 4x. (#7443)
Improve performance of concurrent synchronous gauge measurements in go.opentelemetry.io/otel/sdk/metric. (#7478)
Improve performance of concurrent exponential histogram measurements in go.opentelemetry.io/otel/sdk/metric. (#7702)
Improve the concurrent performance of FixedSizeReservoir in go.opentelemetry.io/otel/sdk/metric/exemplar. (#7447)
The rpc.grpc.status_code attribute in the experimental metrics emitted from go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc is replaced with the rpc.response.status_code attribute to align with the semantic conventions. (#7854)
The rpc.grpc.status_code attribute in the experimental metrics emitted from go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc is replaced with the rpc.response.status_code attribute to align with the semantic conventions. (#7854)
Fixed
Fix bad log message when key-value pairs are dropped because of key duplication in go.opentelemetry.io/otel/sdk/log. (#7662)
Fix DroppedAttributes on Record in go.opentelemetry.io/otel/sdk/log to not count the non-attribute key-value pairs dropped because of key duplication. (#7662)
Fix SetAttributes on Record in go.opentelemetry.io/otel/sdk/log to not log that attributes are dropped when they are actually not dropped. (#7662)
WithHostID detector in go.opentelemetry.io/otel/sdk/resource to use full path for ioreg command on Darwin (macOS). (#7818)
Fix missing request.GetBody in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp to correctly handle HTTP2 GOAWAY frame. (#7794)
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp](https://github.com/open-telemetry/opentelemetry-go) | `v1.39.0` → `v1.40.0` |  |  |
| [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go) | `v1.39.0` → `v1.40.0` |  |  |
| [go.opentelemetry.io/otel/exporters/stdout/stdoutlog](https://github.com/open-telemetry/opentelemetry-go) | `v0.15.0` → `v0.16.0` |  |  |
| [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) | `v1.39.0` → `v1.40.0` |  |  |
| [go.opentelemetry.io/otel/sdk/log](https://github.com/open-telemetry/opentelemetry-go) | `v0.15.0` → `v0.16.0` |  |  |
| [go.opentelemetry.io/otel/sdk/metric](https://github.com/open-telemetry/opentelemetry-go) | `v1.39.0` → `v1.40.0` |  |  |
---
### Release Notes
<details>
<summary>open-telemetry/opentelemetry-go (go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp)</summary>
### [`v1.40.0`](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.40.0): /v0.62.0/v0.16.0
[Compare Source](https://github.com/open-telemetry/opentelemetry-go/compare/v1.39.0...v1.40.0)
##### Overview
##### Added
- Add `Enabled` method to all synchronous instrument interfaces (`Float64Counter`, `Float64UpDownCounter`, `Float64Histogram`, `Float64Gauge`, `Int64Counter`, `Int64UpDownCounter`, `Int64Histogram`, `Int64Gauge`,) in `go.opentelemetry.io/otel/metric`. This stabilizes the synchronous instrument enabled feature, allowing users to check if an instrument will process measurements before performing computationally expensive operations. ([#​7763](https://github.com/open-telemetry/opentelemetry-go/issues/7763))
- Add `AlwaysRecord` sampler in `go.opentelemetry.io/otel/sdk/trace`. ([#​7724](https://github.com/open-telemetry/opentelemetry-go/issues/7724))
- Add `go.opentelemetry.io/otel/semconv/v1.39.0` package. The package contains semantic conventions from the `v1.39.0` version of the OpenTelemetry Semantic Conventions. See the [migration documentation](https://github.com/open-telemetry/opentelemetry-go/blob/298cbedf256b7a9ab3c21e41fc5e3e6d6e4e94aa/semconv/v1.39.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.38.0.` ([#​7783](https://github.com/open-telemetry/opentelemetry-go/issues/7783), [#​7789](https://github.com/open-telemetry/opentelemetry-go/issues/7789))
##### Changed
- `Exporter` in `go.opentelemetry.io/otel/exporters/prometheus` ignores metrics with the scope `go.opentelemetry.io/contrib/bridges/prometheus`. This prevents scrape failures when the Prometheus exporter is misconfigured to get data from the Prometheus bridge. ([#​7688](https://github.com/open-telemetry/opentelemetry-go/issues/7688))
- Improve performance of concurrent histogram measurements in `go.opentelemetry.io/otel/sdk/metric`. ([#​7474](https://github.com/open-telemetry/opentelemetry-go/issues/7474))
- Add experimental observability metrics in `go.opentelemetry.io/otel/exporters/stdout/stdoutmetric`. ([#​7492](https://github.com/open-telemetry/opentelemetry-go/issues/7492))
- Improve the concurrent performance of `HistogramReservoir` in `go.opentelemetry.io/otel/sdk/metric/exemplar` by 4x. ([#​7443](https://github.com/open-telemetry/opentelemetry-go/issues/7443))
- Improve performance of concurrent synchronous gauge measurements in `go.opentelemetry.io/otel/sdk/metric`. ([#​7478](https://github.com/open-telemetry/opentelemetry-go/issues/7478))
- Improve performance of concurrent exponential histogram measurements in `go.opentelemetry.io/otel/sdk/metric`. ([#​7702](https://github.com/open-telemetry/opentelemetry-go/issues/7702))
- Improve the concurrent performance of `FixedSizeReservoir` in `go.opentelemetry.io/otel/sdk/metric/exemplar`. ([#​7447](https://github.com/open-telemetry/opentelemetry-go/issues/7447))
- The `rpc.grpc.status_code` attribute in the experimental metrics emitted from `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` is replaced with the `rpc.response.status_code` attribute to align with the semantic conventions. ([#​7854](https://github.com/open-telemetry/opentelemetry-go/issues/7854))
- The `rpc.grpc.status_code` attribute in the experimental metrics emitted from `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` is replaced with the `rpc.response.status_code` attribute to align with the semantic conventions. ([#​7854](https://github.com/open-telemetry/opentelemetry-go/issues/7854))
##### Fixed
- Fix bad log message when key-value pairs are dropped because of key duplication in `go.opentelemetry.io/otel/sdk/log`. ([#​7662](https://github.com/open-telemetry/opentelemetry-go/issues/7662))
- Fix `DroppedAttributes` on `Record` in `go.opentelemetry.io/otel/sdk/log` to not count the non-attribute key-value pairs dropped because of key duplication. ([#​7662](https://github.com/open-telemetry/opentelemetry-go/issues/7662))
- Fix `SetAttributes` on `Record` in `go.opentelemetry.io/otel/sdk/log` to not log that attributes are dropped when they are actually not dropped. ([#​7662](https://github.com/open-telemetry/opentelemetry-go/issues/7662))
- `WithHostID` detector in `go.opentelemetry.io/otel/sdk/resource` to use full path for `ioreg` command on Darwin (macOS). ([#​7818](https://github.com/open-telemetry/opentelemetry-go/issues/7818))
- Fix missing `request.GetBody` in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp` to correctly handle HTTP2 GOAWAY frame. ([#​7794](https://github.com/open-telemetry/opentelemetry-go/issues/7794))
##### Deprecated
- Deprecate `go.opentelemetry.io/otel/exporters/zipkin`. For more information, see the [OTel blog post deprecating the Zipkin exporter](https://opentelemetry.io/blog/2025/deprecating-zipkin-exporters/). ([#​7670](https://github.com/open-telemetry/opentelemetry-go/issues/7670))
##### What's Changed
- fix(deps): update opentelemetry-go monorepo to v0.15.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7690](https://github.com/open-telemetry/opentelemetry-go/pull/7690)
- chore(deps): update golang.org/x by [@​renovate](https://github.com/renovate)\[bot] in [#​7689](https://github.com/open-telemetry/opentelemetry-go/pull/7689)
- fix(deps): update golang.org/x by [@​renovate](https://github.com/renovate)\[bot] in [#​7691](https://github.com/open-telemetry/opentelemetry-go/pull/7691)
- prometheus exporter ignores metrics from the Prometheus bridge by [@​dashpole](https://github.com/dashpole) in [#​7688](https://github.com/open-telemetry/opentelemetry-go/pull/7688)
- chore(deps): update codecov/codecov-action action to v5.5.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7693](https://github.com/open-telemetry/opentelemetry-go/pull/7693)
- fix(deps): update golang.org/x to [`8475f28`](https://github.com/open-telemetry/opentelemetry-go/commit/8475f28) by [@​renovate](https://github.com/renovate)\[bot] in [#​7692](https://github.com/open-telemetry/opentelemetry-go/pull/7692)
- chore(deps): update github.com/securego/gosec/v2 digest to [`b6eea26`](https://github.com/open-telemetry/opentelemetry-go/commit/b6eea26) by [@​renovate](https://github.com/renovate)\[bot] in [#​7694](https://github.com/open-telemetry/opentelemetry-go/pull/7694)
- chore(deps): update module github.com/securego/gosec/v2 to v2.22.11 by [@​renovate](https://github.com/renovate)\[bot] in [#​7696](https://github.com/open-telemetry/opentelemetry-go/pull/7696)
- Use sync.Map and atomics for fixed bucket histograms by [@​dashpole](https://github.com/dashpole) in [#​7474](https://github.com/open-telemetry/opentelemetry-go/pull/7474)
- chore(deps): update actions/cache action to v5 by [@​renovate](https://github.com/renovate)\[bot] in [#​7701](https://github.com/open-telemetry/opentelemetry-go/pull/7701)
- chore(deps): update otel/weaver docker tag to v0.20.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7698](https://github.com/open-telemetry/opentelemetry-go/pull/7698)
- fix(deps): update module google.golang.org/protobuf to v1.36.11 by [@​renovate](https://github.com/renovate)\[bot] in [#​7704](https://github.com/open-telemetry/opentelemetry-go/pull/7704)
- chore(deps): update github/codeql-action action to v4.31.8 by [@​renovate](https://github.com/renovate)\[bot] in [#​7703](https://github.com/open-telemetry/opentelemetry-go/pull/7703)
- sdk/log: improve Processor documentation by [@​pellared](https://github.com/pellared) in [#​7695](https://github.com/open-telemetry/opentelemetry-go/pull/7695)
- chore(deps): update github artifact actions (major) by [@​renovate](https://github.com/renovate)\[bot] in [#​7707](https://github.com/open-telemetry/opentelemetry-go/pull/7707)
- chore(deps): update actions/cache action to v5.0.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7705](https://github.com/open-telemetry/opentelemetry-go/pull/7705)
- fix(deps): update googleapis to [`97cd9d5`](https://github.com/open-telemetry/opentelemetry-go/commit/97cd9d5) by [@​renovate](https://github.com/renovate)\[bot] in [#​7708](https://github.com/open-telemetry/opentelemetry-go/pull/7708)
- stdoutmetric exporter observability by [@​mahendrabishnoi2](https://github.com/mahendrabishnoi2) in [#​7492](https://github.com/open-telemetry/opentelemetry-go/pull/7492)
- Optimize histogram reservoir by [@​dashpole](https://github.com/dashpole) in [#​7443](https://github.com/open-telemetry/opentelemetry-go/pull/7443)
- chore(deps): update golang.org/x/telemetry digest to [`e75fd47`](https://github.com/open-telemetry/opentelemetry-go/commit/e75fd47) by [@​renovate](https://github.com/renovate)\[bot] in [#​7710](https://github.com/open-telemetry/opentelemetry-go/pull/7710)
- Use sync.Map and atomics for lastvalue aggregations by [@​dashpole](https://github.com/dashpole) in [#​7478](https://github.com/open-telemetry/opentelemetry-go/pull/7478)
- chore(deps): update module go.opentelemetry.io/collector/featuregate to v1.48.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7713](https://github.com/open-telemetry/opentelemetry-go/pull/7713)
- fix(deps): update module go.opentelemetry.io/collector/pdata to v1.48.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7716](https://github.com/open-telemetry/opentelemetry-go/pull/7716)
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.21.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7715](https://github.com/open-telemetry/opentelemetry-go/pull/7715)
- Exponential histogram: defer computing count until collect by [@​dashpole](https://github.com/dashpole) in [#​7702](https://github.com/open-telemetry/opentelemetry-go/pull/7702)
- address feedback from [#​7478](https://github.com/open-telemetry/opentelemetry-go/issues/7478) by [@​dashpole](https://github.com/dashpole) in [#​7718](https://github.com/open-telemetry/opentelemetry-go/pull/7718)
- chore(deps): update github/codeql-action action to v4.31.9 by [@​renovate](https://github.com/renovate)\[bot] in [#​7722](https://github.com/open-telemetry/opentelemetry-go/pull/7722)
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.21.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7726](https://github.com/open-telemetry/opentelemetry-go/pull/7726)
- chore(deps): update golang.org/x/telemetry digest to [`2adc8cf`](https://github.com/open-telemetry/opentelemetry-go/commit/2adc8cf) by [@​renovate](https://github.com/renovate)\[bot] in [#​7725](https://github.com/open-telemetry/opentelemetry-go/pull/7725)
- chore(deps): update golang.org/x/telemetry digest to [`7004b74`](https://github.com/open-telemetry/opentelemetry-go/commit/7004b74) by [@​renovate](https://github.com/renovate)\[bot] in [#​7727](https://github.com/open-telemetry/opentelemetry-go/pull/7727)
- chore(deps): update module github.com/burntsushi/toml to v1.6.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7728](https://github.com/open-telemetry/opentelemetry-go/pull/7728)
- chore(deps): update module github.com/ghostiam/protogetter to v0.3.18 by [@​renovate](https://github.com/renovate)\[bot] in [#​7731](https://github.com/open-telemetry/opentelemetry-go/pull/7731)
- chore(deps): update golang.org/x/telemetry digest to [`e0dd3dd`](https://github.com/open-telemetry/opentelemetry-go/commit/e0dd3dd) by [@​renovate](https://github.com/renovate)\[bot] in [#​7732](https://github.com/open-telemetry/opentelemetry-go/pull/7732)
- fix(deps): update golang.org/x to [`944ab1f`](https://github.com/open-telemetry/opentelemetry-go/commit/944ab1f) by [@​renovate](https://github.com/renovate)\[bot] in [#​7733](https://github.com/open-telemetry/opentelemetry-go/pull/7733)
- fix(deps): update module google.golang.org/grpc to v1.78.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7742](https://github.com/open-telemetry/opentelemetry-go/pull/7742)
- fix(deps): update googleapis to [`0a764e5`](https://github.com/open-telemetry/opentelemetry-go/commit/0a764e5) by [@​renovate](https://github.com/renovate)\[bot] in [#​7740](https://github.com/open-telemetry/opentelemetry-go/pull/7740)
- chore(deps): update golang.org/x/telemetry digest to [`3f2a21f`](https://github.com/open-telemetry/opentelemetry-go/commit/3f2a21f) by [@​renovate](https://github.com/renovate)\[bot] in [#​7739](https://github.com/open-telemetry/opentelemetry-go/pull/7739)
- chore(deps): update module github.com/cloudflare/circl to v1.6.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7741](https://github.com/open-telemetry/opentelemetry-go/pull/7741)
- chore(deps): update module github.com/godoc-lint/godoc-lint to v0.11.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7746](https://github.com/open-telemetry/opentelemetry-go/pull/7746)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​7747](https://github.com/open-telemetry/opentelemetry-go/pull/7747)
- Add test cases to `TestEmit` in `attribute` by [@​itssaharsh](https://github.com/itssaharsh) in [#​7751](https://github.com/open-telemetry/opentelemetry-go/pull/7751)
- fix(deps): update module go.opentelemetry.io/collector/pdata to v1.49.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7754](https://github.com/open-telemetry/opentelemetry-go/pull/7754)
- chore(deps): update module github.com/prometheus/common to v0.67.5 by [@​renovate](https://github.com/renovate)\[bot] in [#​7752](https://github.com/open-telemetry/opentelemetry-go/pull/7752)
- chore(deps): update module github.com/mirrexone/unqueryvet to v1.4.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7756](https://github.com/open-telemetry/opentelemetry-go/pull/7756)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest to [`492b5bc`](https://github.com/open-telemetry/opentelemetry-go/commit/492b5bc) by [@​renovate](https://github.com/renovate)\[bot] in [#​7759](https://github.com/open-telemetry/opentelemetry-go/pull/7759)
- chore(deps): update module github.com/go-critic/go-critic to v0.14.3 by [@​renovate](https://github.com/renovate)\[bot] in [#​7757](https://github.com/open-telemetry/opentelemetry-go/pull/7757)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest to [`19053a8`](https://github.com/open-telemetry/opentelemetry-go/commit/19053a8) by [@​renovate](https://github.com/renovate)\[bot] in [#​7760](https://github.com/open-telemetry/opentelemetry-go/pull/7760)
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.8.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7758](https://github.com/open-telemetry/opentelemetry-go/pull/7758)
- fix(deps): update module golang.org/x/sys to v0.40.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7761](https://github.com/open-telemetry/opentelemetry-go/pull/7761)
- chore(deps): update module github.com/nunnatsa/ginkgolinter to v0.22.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7762](https://github.com/open-telemetry/opentelemetry-go/pull/7762)
- chore(deps): update module go.augendre.info/arangolint to v0.4.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7765](https://github.com/open-telemetry/opentelemetry-go/pull/7765)
- chore(deps): update golang.org/x by [@​renovate](https://github.com/renovate)\[bot] in [#​7769](https://github.com/open-telemetry/opentelemetry-go/pull/7769)
- chore(deps): update module github.com/alexkohler/prealloc to v1.0.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7767](https://github.com/open-telemetry/opentelemetry-go/pull/7767)
- chore(deps): update golang.org/x by [@​renovate](https://github.com/renovate)\[bot] in [#​7771](https://github.com/open-telemetry/opentelemetry-go/pull/7771)
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.22.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7772](https://github.com/open-telemetry/opentelemetry-go/pull/7772)
- sdk/trace: Add `AlwaysRecord` sampler by [@​vitorvasc](https://github.com/vitorvasc) in [#​7724](https://github.com/open-telemetry/opentelemetry-go/pull/7724)
- metric: add Enabled method to synchronous instruments by [@​pellared](https://github.com/pellared) in [#​7763](https://github.com/open-telemetry/opentelemetry-go/pull/7763)
- chore(deps): update github/codeql-action action to v4.31.10 by [@​renovate](https://github.com/renovate)\[bot] in [#​7773](https://github.com/open-telemetry/opentelemetry-go/pull/7773)
- fix(deps): update googleapis to [`99fd39f`](https://github.com/open-telemetry/opentelemetry-go/commit/99fd39f) by [@​renovate](https://github.com/renovate)\[bot] in [#​7774](https://github.com/open-telemetry/opentelemetry-go/pull/7774)
- chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.5.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7775](https://github.com/open-telemetry/opentelemetry-go/pull/7775)
- fix(deps): update golang.org/x by [@​renovate](https://github.com/renovate)\[bot] in [#​7776](https://github.com/open-telemetry/opentelemetry-go/pull/7776)
- chore(deps): update actions/setup-go action to v6.2.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7778](https://github.com/open-telemetry/opentelemetry-go/pull/7778)
- Add TestMergeIdempotent and TestEquivalentStability tests by [@​itssaharsh](https://github.com/itssaharsh) in [#​7764](https://github.com/open-telemetry/opentelemetry-go/pull/7764)
- sdk/log: fix "limit reached" logging and Record.DroppedAttributes by [@​mexirica](https://github.com/mexirica) in [#​7662](https://github.com/open-telemetry/opentelemetry-go/pull/7662)
- chore(deps): update module github.com/mirrexone/unqueryvet to v1.5.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7779](https://github.com/open-telemetry/opentelemetry-go/pull/7779)
- chore(deps): update module dev.gaijin.team/go/golib to v0.8.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7780](https://github.com/open-telemetry/opentelemetry-go/pull/7780)
- fix(deps): update googleapis to [`3f89685`](https://github.com/open-telemetry/opentelemetry-go/commit/3f89685) by [@​renovate](https://github.com/renovate)\[bot] in [#​7785](https://github.com/open-telemetry/opentelemetry-go/pull/7785)
- chore(deps): update module github.com/sirupsen/logrus to v1.9.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​7787](https://github.com/open-telemetry/opentelemetry-go/pull/7787)
- Generate semconv/v1.39.0 by [@​ChrsMark](https://github.com/ChrsMark) in [#​7783](https://github.com/open-telemetry/opentelemetry-go/pull/7783)
- chore(deps): update module github.com/ghostiam/protogetter to v0.3.19 by [@​renovate](https://github.com/renovate)\[bot] in [#​7793](https://github.com/open-telemetry/opentelemetry-go/pull/7793)
- chore(deps): update golang.org/x/telemetry digest to [`c6413dc`](https://github.com/open-telemetry/opentelemetry-go/commit/c6413dc) by [@​renovate](https://github.com/renovate)\[bot] in [#​7795](https://github.com/open-telemetry/opentelemetry-go/pull/7795)
- chore(deps): update actions/cache action to v5.0.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7798](https://github.com/open-telemetry/opentelemetry-go/pull/7798)
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.23.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7802](https://github.com/open-telemetry/opentelemetry-go/pull/7802)
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.3.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7805](https://github.com/open-telemetry/opentelemetry-go/pull/7805)
- Explicitly discourage the use of mutexes inside callbacks by [@​agagniere](https://github.com/agagniere) in [#​7792](https://github.com/open-telemetry/opentelemetry-go/pull/7792)
- chore(deps): update module github.com/mirrexone/unqueryvet to v1.5.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7809](https://github.com/open-telemetry/opentelemetry-go/pull/7809)
- chore(deps): update module go.opentelemetry.io/collector/featuregate to v1.50.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7814](https://github.com/open-telemetry/opentelemetry-go/pull/7814)
- fix(deps): update module go.opentelemetry.io/collector/pdata to v1.50.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7815](https://github.com/open-telemetry/opentelemetry-go/pull/7815)
- fix(deps): update googleapis to [`b8f7ae3`](https://github.com/open-telemetry/opentelemetry-go/commit/b8f7ae3) by [@​renovate](https://github.com/renovate)\[bot] in [#​7819](https://github.com/open-telemetry/opentelemetry-go/pull/7819)
- chore(deps): update module github.com/mirrexone/unqueryvet to v1.5.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7820](https://github.com/open-telemetry/opentelemetry-go/pull/7820)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest to [`e5a2b31`](https://github.com/open-telemetry/opentelemetry-go/commit/e5a2b31) by [@​renovate](https://github.com/renovate)\[bot] in [#​7821](https://github.com/open-telemetry/opentelemetry-go/pull/7821)
- Bump semconv from v1.37.0 to v1.39.0 by [@​itssaharsh](https://github.com/itssaharsh) in [#​7789](https://github.com/open-telemetry/opentelemetry-go/pull/7789)
- support stdlib request.GetBody by [@​morus12](https://github.com/morus12) in [#​7794](https://github.com/open-telemetry/opentelemetry-go/pull/7794)
- resource: specify full path for ioreg command in Darwin host ID reader by [@​pellared](https://github.com/pellared) in [#​7818](https://github.com/open-telemetry/opentelemetry-go/pull/7818)
- chore(deps): update module github.com/mirrexone/unqueryvet to v1.5.3 by [@​renovate](https://github.com/renovate)\[bot] in [#​7822](https://github.com/open-telemetry/opentelemetry-go/pull/7822)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.5 by [@​renovate](https://github.com/renovate)\[bot] in [#​7823](https://github.com/open-telemetry/opentelemetry-go/pull/7823)
- chore(deps): update actions/checkout action to v6.0.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​7826](https://github.com/open-telemetry/opentelemetry-go/pull/7826)
- chore(deps): update module github.com/bombsimon/wsl/v5 to v5.6.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7827](https://github.com/open-telemetry/opentelemetry-go/pull/7827)
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.23.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7830](https://github.com/open-telemetry/opentelemetry-go/pull/7830)
- fix(deps): update googleapis to [`8e98ce8`](https://github.com/open-telemetry/opentelemetry-go/commit/8e98ce8) by [@​renovate](https://github.com/renovate)\[bot] in [#​7829](https://github.com/open-telemetry/opentelemetry-go/pull/7829)
- chore(deps): update module github.com/cloudflare/circl to v1.6.3 by [@​renovate](https://github.com/renovate)\[bot] in [#​7828](https://github.com/open-telemetry/opentelemetry-go/pull/7828)
- Optimize fixedsize reservoir by [@​dashpole](https://github.com/dashpole) in [#​7447](https://github.com/open-telemetry/opentelemetry-go/pull/7447)
- chore(deps): update github/codeql-action action to v4.31.11 by [@​renovate](https://github.com/renovate)\[bot] in [#​7832](https://github.com/open-telemetry/opentelemetry-go/pull/7832)
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.4.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7835](https://github.com/open-telemetry/opentelemetry-go/pull/7835)
- fix(x): correct source filename in generated test files by [@​flc1125](https://github.com/flc1125) in [#​7766](https://github.com/open-telemetry/opentelemetry-go/pull/7766)
- chore(deps): update github/codeql-action action to v4.32.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7837](https://github.com/open-telemetry/opentelemetry-go/pull/7837)
- fix(deps): update googleapis to [`d11affd`](https://github.com/open-telemetry/opentelemetry-go/commit/d11affd) by [@​renovate](https://github.com/renovate)\[bot] in [#​7838](https://github.com/open-telemetry/opentelemetry-go/pull/7838)
- chore(deps): update golang.org/x/telemetry digest to [`58372ce`](https://github.com/open-telemetry/opentelemetry-go/commit/58372ce) by [@​renovate](https://github.com/renovate)\[bot] in [#​7839](https://github.com/open-telemetry/opentelemetry-go/pull/7839)
- fix(deps): update googleapis to [`8636f87`](https://github.com/open-telemetry/opentelemetry-go/commit/8636f87) by [@​renovate](https://github.com/renovate)\[bot] in [#​7841](https://github.com/open-telemetry/opentelemetry-go/pull/7841)
- Deprecate the zipkin exporter by [@​dmathieu](https://github.com/dmathieu) in [#​7670](https://github.com/open-telemetry/opentelemetry-go/pull/7670)
- chore(deps): update golang.org/x/telemetry digest to [`fcf36f6`](https://github.com/open-telemetry/opentelemetry-go/commit/fcf36f6) by [@​renovate](https://github.com/renovate)\[bot] in [#​7843](https://github.com/open-telemetry/opentelemetry-go/pull/7843)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.6 by [@​renovate](https://github.com/renovate)\[bot] in [#​7844](https://github.com/open-telemetry/opentelemetry-go/pull/7844)
- chore(deps): update github.com/timakin/bodyclose digest to [`73d1f95`](https://github.com/open-telemetry/opentelemetry-go/commit/73d1f95) by [@​renovate](https://github.com/renovate)\[bot] in [#​7845](https://github.com/open-telemetry/opentelemetry-go/pull/7845)
- chore(deps): update actions/cache action to v5.0.3 by [@​renovate](https://github.com/renovate)\[bot] in [#​7847](https://github.com/open-telemetry/opentelemetry-go/pull/7847)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.7 by [@​renovate](https://github.com/renovate)\[bot] in [#​7852](https://github.com/open-telemetry/opentelemetry-go/pull/7852)
- refactor: modernize code by [@​alexandear](https://github.com/alexandear) in [#​7850](https://github.com/open-telemetry/opentelemetry-go/pull/7850)
- Upgrade semconv use to v1.39.0 by [@​MrAlias](https://github.com/MrAlias) in [#​7854](https://github.com/open-telemetry/opentelemetry-go/pull/7854)
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.5.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​7857](https://github.com/open-telemetry/opentelemetry-go/pull/7857)
- chore(deps): update github/codeql-action action to v4.32.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​7858](https://github.com/open-telemetry/opentelemetry-go/pull/7858)
- Release v1.40.0 by [@​MrAlias](https://github.com/MrAlias) in [#​7859](https://github.com/open-telemetry/opentelemetry-go/pull/7859)
##### New Contributors
- [@​itssaharsh](https://github.com/itssaharsh) made their first contribution in [#​7751](https://github.com/open-telemetry/opentelemetry-go/pull/7751)
- [@​vitorvasc](https://github.com/vitorvasc) made their first contribution in [#​7724](https://github.com/open-telemetry/opentelemetry-go/pull/7724)
- [@​mexirica](https://github.com/mexirica) made their first contribution in [#​7662](https://github.com/open-telemetry/opentelemetry-go/pull/7662)
- [@​ChrsMark](https://github.com/ChrsMark) made their first contribution in [#​7783](https://github.com/open-telemetry/opentelemetry-go/pull/7783)
- [@​agagniere](https://github.com/agagniere) made their first contribution in [#​7792](https://github.com/open-telemetry/opentelemetry-go/pull/7792)
- [@​morus12](https://github.com/morus12) made their first contribution in [#​7794](https://github.com/open-telemetry/opentelemetry-go/pull/7794)
- [@​alexandear](https://github.com/alexandear) made their first contribution in [#​7850](https://github.com/open-telemetry/opentelemetry-go/pull/7850)
**Full Changelog**: <https://github.com/open-telemetry/opentelemetry-go/compare/v1.39.0...v1.40.0>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Mi40IiwidXBkYXRlZEluVmVyIjoiNDIuOTIuNCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate
scheduled this pull request to auto merge when all checks succeed 2026-02-02 19:02:43 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v1.39.0→v1.40.0v1.39.0→v1.40.0v0.15.0→v0.16.0v1.39.0→v1.40.0v0.15.0→v0.16.0v1.39.0→v1.40.0Release Notes
open-telemetry/opentelemetry-go (go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp)
v1.40.0: /v0.62.0/v0.16.0Compare Source
Overview
Added
Enabledmethod to all synchronous instrument interfaces (Float64Counter,Float64UpDownCounter,Float64Histogram,Float64Gauge,Int64Counter,Int64UpDownCounter,Int64Histogram,Int64Gauge,) ingo.opentelemetry.io/otel/metric. This stabilizes the synchronous instrument enabled feature, allowing users to check if an instrument will process measurements before performing computationally expensive operations. (#7763)AlwaysRecordsampler ingo.opentelemetry.io/otel/sdk/trace. (#7724)go.opentelemetry.io/otel/semconv/v1.39.0package. The package contains semantic conventions from thev1.39.0version of the OpenTelemetry Semantic Conventions. See the migration documentation for information on how to upgrade fromgo.opentelemetry.io/otel/semconv/v1.38.0.(#7783, #7789)Changed
Exporteringo.opentelemetry.io/otel/exporters/prometheusignores metrics with the scopego.opentelemetry.io/contrib/bridges/prometheus. This prevents scrape failures when the Prometheus exporter is misconfigured to get data from the Prometheus bridge. (#7688)go.opentelemetry.io/otel/sdk/metric. (#7474)go.opentelemetry.io/otel/exporters/stdout/stdoutmetric. (#7492)HistogramReservoiringo.opentelemetry.io/otel/sdk/metric/exemplarby 4x. (#7443)go.opentelemetry.io/otel/sdk/metric. (#7478)go.opentelemetry.io/otel/sdk/metric. (#7702)FixedSizeReservoiringo.opentelemetry.io/otel/sdk/metric/exemplar. (#7447)rpc.grpc.status_codeattribute in the experimental metrics emitted fromgo.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpcis replaced with therpc.response.status_codeattribute to align with the semantic conventions. (#7854)rpc.grpc.status_codeattribute in the experimental metrics emitted fromgo.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpcis replaced with therpc.response.status_codeattribute to align with the semantic conventions. (#7854)Fixed
go.opentelemetry.io/otel/sdk/log. (#7662)DroppedAttributesonRecordingo.opentelemetry.io/otel/sdk/logto not count the non-attribute key-value pairs dropped because of key duplication. (#7662)SetAttributesonRecordingo.opentelemetry.io/otel/sdk/logto not log that attributes are dropped when they are actually not dropped. (#7662)WithHostIDdetector ingo.opentelemetry.io/otel/sdk/resourceto use full path forioregcommand on Darwin (macOS). (#7818)request.GetBodyingo.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttpto correctly handle HTTP2 GOAWAY frame. (#7794)Deprecated
go.opentelemetry.io/otel/exporters/zipkin. For more information, see the OTel blog post deprecating the Zipkin exporter. (#7670)What's Changed
8475f28by @renovate[bot] in #7692b6eea26by @renovate[bot] in #769497cd9d5by @renovate[bot] in #7708e75fd47by @renovate[bot] in #77102adc8cfby @renovate[bot] in #77257004b74by @renovate[bot] in #7727e0dd3ddby @renovate[bot] in #7732944ab1fby @renovate[bot] in #77330a764e5by @renovate[bot] in #77403f2a21fby @renovate[bot] in #7739TestEmitinattributeby @itssaharsh in #7751492b5bcby @renovate[bot] in #775919053a8by @renovate[bot] in #7760AlwaysRecordsampler by @vitorvasc in #772499fd39fby @renovate[bot] in #77743f89685by @renovate[bot] in #7785c6413dcby @renovate[bot] in #7795b8f7ae3by @renovate[bot] in #7819e5a2b31by @renovate[bot] in #78218e98ce8by @renovate[bot] in #7829d11affdby @renovate[bot] in #783858372ceby @renovate[bot] in #78398636f87by @renovate[bot] in #7841fcf36f6by @renovate[bot] in #784373d1f95by @renovate[bot] in #7845New Contributors
Full Changelog: https://github.com/open-telemetry/opentelemetry-go/compare/v1.39.0...v1.40.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.
ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
github.com/grpc-ecosystem/grpc-gateway/v2v2.27.3->v2.27.7go.opentelemetry.io/otel/exporters/otlp/otlptracev1.39.0->v1.40.0golang.org/x/cryptov0.46.0->v0.47.0golang.org/x/netv0.48.0->v0.49.0google.golang.org/genproto/googleapis/apiv0.0.0-20251202230838-ff82c1b0f217->v0.0.0-20260128011058-8636f8732409google.golang.org/genproto/googleapis/rpcv0.0.0-20251202230838-ff82c1b0f217->v0.0.0-20260128011058-8636f8732409google.golang.org/grpcv1.77.0->v1.78.0156b968f75toc091d75d15