30 references to W3C
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)
933Assert.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)
296ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 306ActivityIdFormat.W3C => activity.TraceId.ToHexString(), 316ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
79if (activity != null && activity.IdFormat == ActivityIdFormat.W3C)
Microsoft.Extensions.Telemetry (3)
Logging\Import\LoggerFactoryScopeProvider.cs (3)
298ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 308ActivityIdFormat.W3C => activity.TraceId.ToHexString(), 318ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerFactoryTests.cs (3)
648ActivityIdFormat.W3C => activity.SpanId.ToHexString(), 660ActivityIdFormat.W3C => activity.TraceId.ToHexString(), 672ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(),
System.Diagnostics.DiagnosticSource (16)
System\Diagnostics\Activity.cs (9)
822_parentSpanId != null ? ActivityIdFormat.W3C : 824IsW3CId(_parentId) ? ActivityIdFormat.W3C : 829if (IdFormat == ActivityIdFormat.W3C) 913if (_id != null && IdFormat == ActivityIdFormat.W3C) 991else if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C) 1030s_defaultIdFormat = LocalAppContextSwitches.DefaultActivityIdFormatIsHierarchial ? ActivityIdFormat.Hierarchical : ActivityIdFormat.W3C; 1039if (!(ActivityIdFormat.Hierarchical <= value && value <= ActivityIdFormat.W3C)) 1361if (IdFormat == ActivityIdFormat.W3C) 1425if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C)
System\Diagnostics\ActivityCreationOptions.cs (3)
51IdFormat = ActivityIdFormat.W3C; 62IdFormat = ActivityIdFormat.W3C; 133if (Parent is ActivityContext && IdFormat == ActivityIdFormat.W3C && _context == default)
System\Diagnostics\ActivitySource.cs (3)
214if (aco.IdFormat == ActivityIdFormat.W3C) 217acoContext = new ActivityCreationOptions<ActivityContext>(this, name, aco.GetContext(), kind, tags, links, ActivityIdFormat.W3C); 232else if (data.IdFormat == ActivityIdFormat.W3C)
System\Diagnostics\LegacyPropagator.cs (1)
29if (activity.IdFormat == ActivityIdFormat.W3C)