Skip to content

OpenTelemetry source-build packages have wrong AssemblyVersion and missing experimental APIs #5577

@ellahathaway

Description

@ellahathaway

Summary

After the SDK upgraded OpenTelemetry to 1.15.3 in dotnet/dotnet@1616fce8866, source-built OTel packages diverge from Microsoft-built ones:

  1. Wrong AssemblyVersion — MSFT: 1.0.0.0, SB: 1.15.3.0
  2. Missing experimental APIs — Types gated by EXPOSE_EXPERIMENTAL_FEATURES are absent
  3. Assembly identity mismatch — Contrib packages differ in 4th version component (CI BuildNumber)

See diffs in dotnet/dotnet@6ebbf90

Root Cause

opentelemetry-dotnet.proj and opentelemetry-dotnet-contrib.proj in source-build-assets pass /p:IntegrationBuild=true which disables MinVer. Without MinVer, the target chain that sets AssemblyVersion and enables experimental features never fires.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions