3 writes to IdFormat
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Activity.cs (3)
819IdFormat = 1057IdFormat = format; 1186activity.IdFormat = idFormat;
23 references to IdFormat
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
80if (parent == null || parent.IdFormat != ActivityIdFormat.W3C)
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
938Assert.Equal(ActivityIdFormat.W3C, Activity.Current.IdFormat);
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
149Assert.Equal(ActivityIdFormat.W3C, invocationActivity.IdFormat); 275Assert.Equal(ActivityIdFormat.W3C, invocationActivity.IdFormat);
Microsoft.Extensions.Logging (3)
LoggerFactoryScopeProvider.cs (3)
293return activity.IdFormat switch 303return activity.IdFormat switch 313return activity.IdFormat switch
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
79if (activity != null && activity.IdFormat == ActivityIdFormat.W3C)
Microsoft.Extensions.Telemetry (3)
Logging\Import\LoggerFactoryScopeProvider.cs (3)
311return activity.IdFormat switch 321return activity.IdFormat switch 331return activity.IdFormat switch
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerFactoryTests.cs (3)
645return activity.IdFormat switch 657return activity.IdFormat switch 669return activity.IdFormat switch
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Activity.cs (7)
816if (IdFormat == ActivityIdFormat.Unknown) 821Parent != null ? Parent.IdFormat : 829if (IdFormat == ActivityIdFormat.W3C) 913if (_id != null && IdFormat == ActivityIdFormat.W3C) 991else if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C) 1363if (IdFormat == ActivityIdFormat.W3C) 1427if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C)
System\Diagnostics\ActivityCreationOptions.cs (1)
80IdFormat = Activity.Current != null ? Activity.Current.IdFormat : Activity.DefaultIdFormat;
System\Diagnostics\LegacyPropagator.cs (1)
29if (activity.IdFormat == ActivityIdFormat.W3C)