Skip to content

Commit

Permalink
Update OpenTelemetry dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
tebaikin committed Apr 22, 2024
1 parent 3eec606 commit 7c47200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public static class IServiceCollectionExtensions
public static IServiceCollection ConfigureVostokAspNetCoreInstrumentation(this IServiceCollection serviceCollection, string name = null)
{
name ??= Options.DefaultName;
serviceCollection.Configure<AspNetCoreInstrumentationOptions>(name, Enrich);
serviceCollection.Configure<AspNetCoreTraceInstrumentationOptions>(name, Enrich);
return serviceCollection;

static void Enrich(AspNetCoreInstrumentationOptions options)
static void Enrich(AspNetCoreTraceInstrumentationOptions options)
{
var enrichWithHttpRequest = options.EnrichWithHttpRequest;
options.EnrichWithHttpRequest = (activity, request) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="OpenTelemetry" Version="1.4.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.0.0-rc9.14" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.8.1" />
<PackageReference Include="OpenTelemetry.SemanticConventions" Version="1.0.0-rc9.9" />
<Reference Include="Vostok.Tracing.Diagnostics">
<SpecificVersion>False</SpecificVersion>
Expand Down

0 comments on commit 7c47200

Please sign in to comment.