Class TracingCoreServiceCollectionExtensions
- Namespace
- Steeltoe.Management.Tracing
- Assembly
- Steeltoe.Management.TracingCore.dll
public static class TracingCoreServiceCollectionExtensions
- Inheritance
-
TracingCoreServiceCollectionExtensions
- Inherited Members
Methods
AddDistributedTracingAspNetCore(IServiceCollection)
Configure distributed tracing via OpenTelemetry with HttpClient and ASP.NET Core Instrumentation along with (optionally) Zipkin exporting
public static IServiceCollection AddDistributedTracingAspNetCore(this IServiceCollection services)
Parameters
servicesIServiceCollectionMicrosoft.Extensions.DependencyInjection.IServiceCollection
Returns
- IServiceCollection
Microsoft.Extensions.DependencyInjection.IServiceCollection configured for distributed tracing.
AddDistributedTracingAspNetCore(IServiceCollection, Action<TracerProviderBuilder>)
Configure distributed tracing via OpenTelemetry with HttpClient and ASP.NET Core Instrumentation along with (optionally) Zipkin exporting
public static IServiceCollection AddDistributedTracingAspNetCore(this IServiceCollection services, Action<TracerProviderBuilder> action)
Parameters
servicesIServiceCollectionMicrosoft.Extensions.DependencyInjection.IServiceCollection
actionAction<TracerProviderBuilder>Customize the OpenTelemetry.Trace.TracerProviderBuilder.
Returns
- IServiceCollection
Microsoft.Extensions.DependencyInjection.IServiceCollection configured for distributed tracing.