Skip to content

Commit

Permalink
Merge branch 'UpdateOpenTelemetryAspNetCoreDependency' into 'master'
Browse files Browse the repository at this point in the history
Update open telemetry asp net core dependency

See merge request vostok-libraries/applications.aspnetcore!4
  • Loading branch information
Тебайкин Максим Дмитриевич committed Apr 22, 2024
2 parents 3eec606 + 4745ea5 commit 0642b2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.22 (22-04-2024):

Updated OpenTelemetry.Instrumentation.AspNetCore version.

## 0.3.21 (28-03-2024):

Updated dependencies.
Expand Down
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 0642b2b

Please sign in to comment.