38 references to Id
Aspire.Dashboard (1)
Components\Pages\Error.razor.cs (1)
24RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
dotnet (1)
Telemetry\TelemetryDiskLogger.cs (1)
78id: activity.Id,
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Telemetry\TelemetryDiskLogger.cs (1)
78id: activity.Id,
Microsoft.AspNetCore.Http.Extensions (1)
DefaultProblemDetailsWriter.cs (1)
58var traceId = Activity.Current?.Id ?? httpContext.TraceIdentifier;
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\DefaultProblemDetailsFactory.cs (1)
105var traceId = Activity.Current?.Id ?? httpContext?.TraceIdentifier;
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (2)
947Assert.NotNull(activity.Id); 948Assert.NotEmpty(activity.Id);
EmbeddingGeneratorIntegrationTests.cs (2)
128Assert.NotNull(activity.Id); 129Assert.NotEmpty(activity.Id);
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
165Assert.NotNull(activity.Id); 166Assert.NotEmpty(activity.Id);
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (2)
77Assert.NotNull(activity.Id); 78Assert.NotEmpty(activity.Id);
Image\OpenTelemetryImageGeneratorTests.cs (2)
96Assert.NotNull(activity.Id); 97Assert.NotEmpty(activity.Id);
Realtime\OpenTelemetryRealtimeClientTests.cs (2)
112Assert.NotNull(activity.Id); 113Assert.NotEmpty(activity.Id);
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
110Assert.NotNull(activity.Id); 111Assert.NotEmpty(activity.Id);
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
114Assert.NotNull(activity.Id); 115Assert.NotEmpty(activity.Id);
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
295ActivityIdFormat.Hierarchical => activity.Id,
Microsoft.Extensions.Telemetry (1)
Logging\Import\LoggerFactoryScopeProvider.cs (1)
309ActivityIdFormat.Hierarchical => activity.Id,
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerFactoryTests.cs (1)
662ActivityIdFormat.Hierarchical => activity.Id,
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Activity.cs (9)
290Interlocked.CompareExchange(ref _parentId, Parent.Id, null); 314if (Id != null) 316rootId = GetRootId(Id); 792/// <item>Generates a unique <see cref="Id"/> for this activity.</item> 1363Debug.Assert(!string.IsNullOrEmpty(Parent.Id)); 1364ret = AppendSuffix(Parent.Id, Interlocked.Increment(ref Parent._currentChildId).ToString(), '.'); 1447bool canSet = activity == null || (activity.Id != null && !activity.IsStopped); 1951string? id = Id; 2276public string? Id => activity.Id;
System\Diagnostics\LegacyPropagator.cs (1)
23string? id = activity.Id;
System\Diagnostics\PassThroughPropagator.cs (1)
51parentId = activity?.ParentId ?? activity?.Id;
System\Diagnostics\W3CPropagator.cs (1)
40string? id = activity.Id;