chore: add http telemetry support
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 1s
Build, Package and Push Images / build (push) Successful in 25s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / sbom-scan (push) Successful in 36s
Build, Package and Push Images / container-build (push) Successful in 1m44s
Build, Package and Push Images / container-sbom-scan (push) Successful in 35s
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 1s
Build, Package and Push Images / build (push) Successful in 25s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / sbom-scan (push) Successful in 36s
Build, Package and Push Images / container-build (push) Successful in 1m44s
Build, Package and Push Images / container-sbom-scan (push) Successful in 35s
This commit is contained in:
parent
cc75733e5f
commit
62ee2df1df
2 changed files with 7 additions and 1 deletions
|
@ -46,8 +46,13 @@ builder.Services.AddOpenTelemetry()
|
||||||
tracing.SetSampler(new AlwaysOnSampler());
|
tracing.SetSampler(new AlwaysOnSampler());
|
||||||
tracing.AddMassTransitInstrumentation();
|
tracing.AddMassTransitInstrumentation();
|
||||||
tracing.AddEntityFrameworkCoreInstrumentation(options => options.SetDbStatementForText = true);
|
tracing.AddEntityFrameworkCoreInstrumentation(options => options.SetDbStatementForText = true);
|
||||||
|
tracing.AddHttpClientInstrumentation();
|
||||||
})
|
})
|
||||||
.WithMetrics(metrics => { metrics.AddRuntimeInstrumentation(); });
|
.WithMetrics(metrics =>
|
||||||
|
{
|
||||||
|
metrics.AddRuntimeInstrumentation();
|
||||||
|
metrics.AddHttpClientInstrumentation();
|
||||||
|
});
|
||||||
|
|
||||||
builder.Logging.AddOpenTelemetry(logging =>
|
builder.Logging.AddOpenTelemetry(logging =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1" />
|
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1" />
|
||||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" />
|
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" />
|
||||||
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.8" />
|
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.8" />
|
||||||
|
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.3" />
|
||||||
<PackageReference Include="OpenTelemetry.Instrumentation.MassTransit" Version="1.0.0-beta.3" />
|
<PackageReference Include="OpenTelemetry.Instrumentation.MassTransit" Version="1.0.0-beta.3" />
|
||||||
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1" />
|
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1" />
|
||||||
<PackageReference Include="OpenTelemetry.PersistentStorage.FileSystem" Version="1.0.0" />
|
<PackageReference Include="OpenTelemetry.PersistentStorage.FileSystem" Version="1.0.0" />
|
||||||
|
|
Loading…
Reference in a new issue