Skip to content

Bump OpenTelemetry pins to match SBRP (core/Http 1.16.0, Runtime 1.15.1) - #55216

Merged
baronfel merged 1 commit into
mainfrom
baronfel-bump-otel-versions
Jul 9, 2026
Merged

Bump OpenTelemetry pins to match SBRP (core/Http 1.16.0, Runtime 1.15.1)#55216
baronfel merged 1 commit into
mainfrom
baronfel-bump-otel-versions

Conversation

@baronfel

@baronfel baronfel commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Aligns the SDK's OpenTelemetry package pins with the versions now shipped by source-built reference packages (SBRP) in dotnet/source-build-assets#1742.

The VMR codeflow PR dotnet/dotnet#7604 fails its source-only build leg (SB_CentOSStream10) with 6x CS1705 errors in src/sdk/src/Cli/dotnet/dotnet.csproj: the source-built OpenTelemetry core assemblies (now 1.16.0, AssemblyVersion 1.0.0.0) conflict with the SDK still pinning the old 1.15.3 core packages. Bumping the SDK's pins to match SBRP resolves the skew.

Version changes

Package(s) Old New
OpenTelemetry core — Api, Exporter.OpenTelemetryProtocol, Exporter.InMemory 1.15.3 1.16.0
OpenTelemetry.Instrumentation.Http 1.15.1 1.16.0
OpenTelemetry.Instrumentation.Runtime 1.15.1 1.15.1 (unchanged — no 1.16.0 release exists on NuGet)
Azure.Monitor.OpenTelemetry.Exporter 1.4.0 1.4.0 (unchanged)

Implementation notes

OpenTelemetryDotnetContribPackageVersion previously backed both Instrumentation.Http and Instrumentation.Runtime. Since Http (1.16.0) and Runtime (1.15.1) now diverge — and there is no 1.16.0 release of Instrumentation.Runtime — the shared variable had to be split. Http now uses a new OpenTelemetryInstrumentationHttpPackageVersion; OpenTelemetryDotnetContribPackageVersion now represents Runtime only.

These pins are manual/external (not tracked in eng/Version.Details.xml), so editing them directly is correct.

Validation

Restored src/Cli/dotnet/dotnet.csproj cleanly with the new versions. The resolved graph in project.assets.json confirms the intended end state:

  • OpenTelemetry.Api / Exporter.OpenTelemetryProtocol / Exporter.InMemory → 1.16.0
  • OpenTelemetry.Instrumentation.Http → 1.16.0
  • OpenTelemetry.Instrumentation.Runtime → 1.15.1

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Aligns the SDK's OpenTelemetry package pins with the versions shipped by
dotnet/source-build-assets#1742 to resolve the CS1705 source-build failure
in dotnet/dotnet#7604.

- OpenTelemetry core (Api, Exporter.OpenTelemetryProtocol, Exporter.InMemory): 1.15.3 -> 1.16.0
- OpenTelemetry.Instrumentation.Http: 1.15.1 -> 1.16.0
- OpenTelemetry.Instrumentation.Runtime: unchanged at 1.15.1 (no 1.16.0 release exists)

Split OpenTelemetryDotnetContribPackageVersion: Http now uses a new
OpenTelemetryInstrumentationHttpPackageVersion variable since Http and Runtime
versions diverged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 9, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SDK’s OpenTelemetry version pins to align with the versions used by source-built reference packages (SBRP), avoiding source-build assembly version skew (notably the CS1705 conflicts described in the PR metadata).

Changes:

  • Bumped the pinned “core” OpenTelemetry package version property to 1.16.0.
  • Split the previously-shared contrib pin so OpenTelemetry.Instrumentation.Http can move to 1.16.0 while OpenTelemetry.Instrumentation.Runtime remains on 1.15.1 via the existing contrib property.

Reviewed changes

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

File Description
eng/Versions.props Updates OpenTelemetry core pin to 1.16.0 and introduces a dedicated property for OpenTelemetry.Instrumentation.Http at 1.16.0.
Directory.Packages.props Switches OpenTelemetry.Instrumentation.Http to use the new HTTP-specific version property while keeping Runtime on the contrib pin.

@baronfel
baronfel merged commit e03868e into main Jul 9, 2026
30 checks passed
@baronfel
baronfel deleted the baronfel-bump-otel-versions branch July 9, 2026 17:59
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants