Skip to content

Upgrade semconv use to v1.39.0#7854

Merged
MrAlias merged 2 commits intoopen-telemetry:mainfrom
MrAlias:up-v1.38.0
Feb 2, 2026
Merged

Upgrade semconv use to v1.39.0#7854
MrAlias merged 2 commits intoopen-telemetry:mainfrom
MrAlias:up-v1.38.0

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Jan 30, 2026

@MrAlias MrAlias added this to the v1.40.0 milestone Jan 30, 2026
- Replace use of `rpc.grpc.status_code` with `rpc.response.status_code`
- Pin zipkin semconv to use 1.38.0 for deprecated `PeerServiceKey`.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.7%. Comparing base (3264bf1) to head (0538279).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #7854     +/-   ##
=======================================
- Coverage   81.7%   81.7%   -0.1%     
=======================================
  Files        304     304             
  Lines      23234   23235      +1     
=======================================
- Hits       18992   18991      -1     
- Misses      3859    3861      +2     
  Partials     383     383             
Files with missing lines Coverage Δ
...log/otlploggrpc/internal/observ/instrumentation.go 99.2% <100.0%> (ø)
...e/otlptracegrpc/internal/observ/instrumentation.go 100.0% <100.0%> (ø)
exporters/zipkin/model.go 99.3% <ø> (ø)

... and 3 files with indirect coverage changes

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

@MrAlias MrAlias marked this pull request as ready for review January 30, 2026 17:48
Copilot AI review requested due to automatic review settings January 30, 2026 17:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Upgrades OTLP exporter observability instrumentation to semantic conventions v1.39.0, including migrating gRPC status reporting from the deprecated rpc.grpc.status_code to rpc.response.status_code, and adjusts Zipkin exporter usage to keep peer.service support.

Changes:

  • Bump semconv imports from v1.37.0 to v1.39.0 across OTLP trace/log gRPC observability code and tests.
  • Replace usage of rpc.grpc.status_code with rpc.response.status_code in experimental observability metrics.
  • Keep Zipkin remote-endpoint ranking behavior by sourcing removed PeerServiceKey/PeerService from semconv v1.38.0.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
exporters/zipkin/model.go Uses semconv v1.39.0 generally, while importing semconv v1.38.0 specifically to retain PeerServiceKey for Zipkin remote endpoint ranking.
exporters/zipkin/model_test.go Updates tests to use semconv v1.38.0 PeerService(...) where v1.39.0 removed it.
exporters/otlp/otlptrace/otlptracegrpc/internal/observ/instrumentation.go Migrates exporter observability metric attributes to rpc.response.status_code and updates semconv version.
exporters/otlp/otlptrace/otlptracegrpc/internal/observ/instrumentation_test.go Updates expected attributes and semconv imports to v1.39.0.
exporters/otlp/otlptrace/otlptracegrpc/client_test.go Updates otelconv metric attribute helper usage to AttrRPCResponseStatusCode.
exporters/otlp/otlplog/otlploggrpc/internal/observ/instrumentation.go Migrates log exporter observability metric attributes to rpc.response.status_code and updates semconv version.
exporters/otlp/otlplog/otlploggrpc/internal/observ/instrumentation_test.go Updates expected attributes and semconv imports to v1.39.0.
exporters/otlp/otlplog/otlploggrpc/client_test.go Updates otelconv metric attribute helper usage to AttrRPCResponseStatusCode.
CHANGELOG.md Documents the observability attribute migration (with a minor grammar issue noted).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CHANGELOG.md Outdated
Comment thread exporters/zipkin/model.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MrAlias MrAlias merged commit 298cbed into open-telemetry:main Feb 2, 2026
33 checks passed
@MrAlias MrAlias deleted the up-v1.38.0 branch February 2, 2026 16:23
@MrAlias MrAlias mentioned this pull request Feb 2, 2026
MrAlias added a commit that referenced this pull request Feb 2, 2026
### 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)
- 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](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, #7789)

### Changed

- `Exporter` in `go.opentelemetry.io/otel/exporter/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)

### 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)

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump semconv to 1.39 in otlploggrpc, otlptracegrpc, and zipkin

6 participants