Skip to content

Commit

Permalink
[Internal] Samples: Fixes OpenTelemetry sample package references (#4786
Browse files Browse the repository at this point in the history
)

# Pull Request Template

## Description

Current OpenTelemetry sample gives runtime error due to mismatched
OpenTelemetry version. This is tracked in the Otel repo here:
open-telemetry/opentelemetry-dotnet#5741

There is no GA Azure Monitor Otel exporter version that uses
OpenTelemetry 1.9.0, so we need to manually lift the version to avoid
runtime errors.

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
  • Loading branch information
jcocchi authored Oct 10, 2024
1 parent 174269b commit b5d7da0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.9.0" />
<PackageReference Include="OpenTelemetry" Version="1.9.0" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>

Expand Down

0 comments on commit b5d7da0

Please sign in to comment.