3 types derived from DistributedContextPropagator
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\LegacyPropagator.cs (1)
10internal sealed class LegacyPropagator : DistributedContextPropagator
System\Diagnostics\NoOutputPropagator.cs (1)
8internal sealed class NoOutputPropagator : DistributedContextPropagator
System\Diagnostics\PassThroughPropagator.cs (1)
8internal sealed class PassThroughPropagator : DistributedContextPropagator
41 references to DistributedContextPropagator
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\Diagnostics\ActivityCreator.cs (2)
15DistributedContextPropagator propagator, 17DistributedContextPropagator.PropagatorGetterCallback propagatorGetter,
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\Shared\Diagnostics\ActivityCreator.cs (2)
15DistributedContextPropagator propagator, 17DistributedContextPropagator.PropagatorGetterCallback propagatorGetter,
Microsoft.AspNetCore.Hosting (12)
GenericHost\GenericWebHostBuilder.cs (1)
77services.TryAddSingleton(DistributedContextPropagator.Current);
GenericHost\GenericWebHostService.cs (2)
24DistributedContextPropagator propagator, 54public DistributedContextPropagator Propagator { get; }
GenericHost\SlimWebHostBuilder.cs (1)
51services.TryAddSingleton(DistributedContextPropagator.Current);
Internal\HostingApplication.cs (1)
25DistributedContextPropagator propagator,
Internal\HostingApplicationDiagnostics.cs (2)
32private readonly DistributedContextPropagator _propagator; 41DistributedContextPropagator propagator,
Internal\WebHost.cs (2)
142var propagator = _applicationServices.GetRequiredService<DistributedContextPropagator>();
src\Shared\Diagnostics\ActivityCreator.cs (2)
15DistributedContextPropagator propagator, 17DistributedContextPropagator.PropagatorGetterCallback propagatorGetter,
WebHostBuilder.cs (1)
289services.TryAddSingleton(DistributedContextPropagator.Current);
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (1)
1113DistributedContextPropagator.CreateDefaultPropagator(),
HostingApplicationTests.cs (1)
197DistributedContextPropagator.CreateDefaultPropagator(),
HostingMetricsTests.cs (1)
204DistributedContextPropagator.CreateDefaultPropagator(),
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1197DistributedContextPropagator.Current.Inject(currentActivity, invocationMessage, static (carrier, key, value) =>
Microsoft.AspNetCore.SignalR.Core (5)
Internal\DefaultHubDispatcher.cs (3)
862var propagator = serviceProvider.GetService<DistributedContextPropagator>() ?? DistributedContextPropagator.Current;
src\Shared\Diagnostics\ActivityCreator.cs (2)
15DistributedContextPropagator propagator, 17DistributedContextPropagator.PropagatorGetterCallback propagatorGetter,
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\DistributedContextPropagator.cs (5)
18private static DistributedContextPropagator s_current = CreateDefaultPropagator(); 72public static DistributedContextPropagator Current 94public static DistributedContextPropagator CreateDefaultPropagator() => LegacyPropagator.Instance; 100public static DistributedContextPropagator CreatePassThroughPropagator() => PassThroughPropagator.Instance; 105public static DistributedContextPropagator CreateNoOutputPropagator() => NoOutputPropagator.Instance;
System\Diagnostics\LegacyPropagator.cs (1)
12internal static DistributedContextPropagator Instance { get; } = new LegacyPropagator();
System\Diagnostics\NoOutputPropagator.cs (1)
10internal static DistributedContextPropagator Instance { get; } = new NoOutputPropagator();
System\Diagnostics\PassThroughPropagator.cs (1)
10internal static DistributedContextPropagator Instance { get; } = new PassThroughPropagator();
System.Net.Http (8)
System\Net\Http\DiagnosticsHandler.cs (2)
22private readonly DistributedContextPropagator _propagator; 25public DiagnosticsHandler(HttpMessageHandler innerHandler, DistributedContextPropagator propagator, bool autoRedirect = false)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (2)
56internal DistributedContextPropagator? _activityHeadersPropagator = DistributedContextPropagator.Current;
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (4)
459/// Gets or sets the <see cref="DistributedContextPropagator"/> to use when propagating the distributed trace and context. 461/// Defaults to <see cref="DistributedContextPropagator.Current"/>. 464public DistributedContextPropagator? ActivityHeadersPropagator 538if (DiagnosticsHandler.IsGloballyEnabled() && settings._activityHeadersPropagator is DistributedContextPropagator propagator)