31 references to Id
Aspire.Dashboard (1)
Components\Pages\Error.razor.cs (1)
24RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
dotnet (1)
Telemetry\TelemetryDiskLogger.cs (1)
72id: activity.Id,
Microsoft.AspNetCore.Http.Extensions (1)
DefaultProblemDetailsWriter.cs (1)
58var traceId = 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)
956Assert.NotNull(activity.Id); 957Assert.NotEmpty(activity.Id);
EmbeddingGeneratorIntegrationTests.cs (2)
129Assert.NotNull(activity.Id); 130Assert.NotEmpty(activity.Id);
Microsoft.Extensions.AI.Tests (8)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
161Assert.NotNull(activity.Id); 162Assert.NotEmpty(activity.Id);
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (2)
77Assert.NotNull(activity.Id); 78Assert.NotEmpty(activity.Id);
Image\OpenTelemetryImageGeneratorTests.cs (2)
94Assert.NotNull(activity.Id); 95Assert.NotEmpty(activity.Id);
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
108Assert.NotNull(activity.Id); 109Assert.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); 786/// <item>Generates a unique <see cref="Id"/> for this activity.</item> 1357Debug.Assert(!string.IsNullOrEmpty(Parent.Id)); 1358ret = AppendSuffix(Parent.Id, Interlocked.Increment(ref Parent._currentChildId).ToString(), '.'); 1441bool canSet = activity == null || (activity.Id != null && !activity.IsStopped); 1897string? id = Id; 2242public string? Id => activity.Id;
System\Diagnostics\LegacyPropagator.cs (1)
23string? id = activity.Id;
System\Diagnostics\PassThroughPropagator.cs (1)
54parentId = activity?.ParentId ?? activity?.Id;
System\Diagnostics\W3CPropagator.cs (1)
33string? id = activity.Id;