31 instantiations of ActivityEvent
aspire (7)
Projects\ProcessGuestLauncher.cs (2)
208activity.AddEvent(new ActivityEvent(eventName)); 212activity.AddEvent(new ActivityEvent(eventName, tags: new ActivityTagsCollection
Telemetry\AspireCliTelemetry.cs (2)
219activity.AddEvent(new ActivityEvent(TelemetryConstants.Events.Error, tags: tags)); 493activity.AddEvent(new ActivityEvent(TelemetryConstants.Events.InternalMicrosoftProbe, tags: tags));
Telemetry\ProfilingTelemetry.cs (3)
833activity?.AddEvent(new ActivityEvent(Events.BackchannelConnectAttempt, tags: new ActivityTagsCollection 874activity?.AddEvent(new ActivityEvent(Events.DotNetProcessStarted, tags: new ActivityTagsCollection 1184private void AddEvent(string name) => activity?.AddEvent(new ActivityEvent(name));
Aspire.Hosting (10)
Diagnostics\ProfilingTelemetry.cs (10)
779activity?.AddEvent(new ActivityEvent(Events.DcpServiceAddressAllocated, tags: new ActivityTagsCollection 787activity?.AddEvent(new ActivityEvent(Events.DcpServiceAddressAllocationFailed, tags: new ActivityTagsCollection 806activity.AddEvent(new ActivityEvent(startupEvent.Name, startupEvent.Timestamp)); 816activity?.AddEvent(new ActivityEvent(Events.KubernetesApiRetry, tags: new ActivityTagsCollection 839activity?.AddEvent(new ActivityEvent(Events.ResourceWaitCancelled, tags: new ActivityTagsCollection 897activity?.AddEvent(new ActivityEvent(Events.KubernetesClientReady, tags: new ActivityTagsCollection 1010activity.AddEvent(new ActivityEvent(Events.Exception, tags: new ActivityTagsCollection 1089private void AddEvent(string name) => activity?.AddEvent(new ActivityEvent(name)); 1124activity.AddEvent(new ActivityEvent(eventName, tags: tags)); 1170activity.AddEvent(new ActivityEvent(eventName, timestamp, tags));
Aspire.Hosting.RemoteHost (3)
Diagnostics\RemoteHostProfilingTelemetry.cs (3)
369activity?.AddEvent(new ActivityEvent(Events.JsonRpcClientConnected, tags: new ActivityTagsCollection 451activity.AddEvent(new ActivityEvent(Events.Exception, tags: new ActivityTagsCollection 477private void AddEvent(string name) => activity?.AddEvent(new ActivityEvent(name));
Aspire.StackExchange.Redis (3)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (3)
226activity.AddEvent(new ActivityEvent("Enqueued", enqueued)); 227activity.AddEvent(new ActivityEvent("Sent", send)); 228activity.AddEvent(new ActivityEvent("ResponseReceived", response));
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryClient.cs (1)
359var @event = new ActivityEvent($"dotnet/cli/{eventName}", tags: MakeTags(properties));
Stress.ApiService (6)
Program.cs (5)
850activity.AddEvent(new ActivityEvent("gen_ai.evaluation.result", tags: eval1Tags)); 860activity.AddEvent(new ActivityEvent("gen_ai.evaluation.result", tags: eval2Tags)); 870activity.AddEvent(new ActivityEvent("gen_ai.evaluation.result", tags: eval3Tags)); 881activity.AddEvent(new ActivityEvent("gen_ai.evaluation.result", tags: eval4Tags)); 889activity.AddEvent(new ActivityEvent("gen_ai.evaluation.result", tags: eval5Tags));
TraceCreator.cs (1)
126activity.AddEvent(new ActivityEvent($"event-{i}", DateTimeOffset.UtcNow.AddMilliseconds(1), activityTags));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
609return AddEvent(new ActivityEvent(ExceptionEventName, timestamp, ref exceptionTags));
38 references to ActivityEvent
Aspire.Cli.Tests (3)
Telemetry\AspireCliTelemetryTests.cs (3)
126var exceptionEvent = Assert.Single(events); 677var probeEvent = Assert.Single(activity.Events); 705var probeEvent = Assert.Single(fixture.CapturedActivity!.Events);
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentationOptions.cs (1)
66/// Gets or sets a value indicating whether the <see cref="StackExchangeRedisConnectionInstrumentation"/> should enrich Activity with <see cref="ActivityEvent"/> entries about the Redis command processing/lifetime. Defaults to <see langword="true"/>.
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryClient.cs (1)
359var @event = new ActivityEvent($"dotnet/cli/{eventName}", tags: MakeTags(properties));
Microsoft.DotNet.Cli.Telemetry (5)
Implementation\AzureMonitorTelemetrySerializer.cs (4)
21/// <item><description>Each <see cref="ActivityEvent"/> → <c>MessageData</c>, or 56foreach (ref readonly var activityEvent in activity.EnumerateEvents()) 117in ActivityEvent activityEvent, 165private static ExceptionData BuildExceptionData(in ActivityEvent activityEvent)
Implementation\BreezeEnvelope.cs (1)
102/// <see cref="System.Diagnostics.ActivityEvent"/> and for an OpenTelemetry
System.Diagnostics.DiagnosticSource (28)
System\Diagnostics\Activity.cs (17)
65private static readonly IEnumerable<ActivityEvent> s_emptyEvents = new DiagLinkedList<ActivityEvent>(); 115private DiagLinkedList<ActivityEvent>? _events; 354/// Events is the list of all <see cref="ActivityEvent" /> objects attached to this Activity object. 355/// If there is not any <see cref="ActivityEvent" /> object attached to the Activity object, Events will return empty list. 357public IEnumerable<ActivityEvent> Events 419/// Enumerate the <see cref="ActivityEvent" /> objects attached to this Activity object. 422public Enumerator<ActivityEvent> EnumerateEvents() => new Enumerator<ActivityEvent>(_events?.First); 532/// Add <see cref="ActivityEvent" /> object to the <see cref="Events" /> list. 534/// <param name="e"> object of <see cref="ActivityEvent"/> to add to the attached events list.</param> 536public Activity AddEvent(ActivityEvent e) 538if (_events != null || Interlocked.CompareExchange(ref _events, new DiagLinkedList<ActivityEvent>(e), null) != null) 547/// Add an <see cref="ActivityEvent" /> object containing the exception information to the <see cref="Events" /> list. 557/// before the <see cref="ActivityEvent" /> object is added to the <see cref="Events" /> list.</para> 2274public List<ActivityEvent> Events => new List<ActivityEvent>(activity.Events);
System\Diagnostics\ActivityEvent.cs (5)
19/// Initializes a new instance of the <see cref="ActivityEvent"/> class. 27/// Initializes a new instance of the <see cref="ActivityEvent"/> class. 45/// Gets the <see cref="ActivityEvent"/> name. 50/// Gets the <see cref="ActivityEvent"/> timestamp. 60/// Enumerate the tags attached to this <see cref="ActivityEvent"/> object.
System\Diagnostics\ActivityTagsCollection.cs (1)
12/// This collection will be used with classes like <see cref="ActivityEvent"/> and <see cref="ActivityLink"/>.
System\Diagnostics\DiagLinkedList.cs (4)
187private static void ActivityEventToString(ref ActivityEvent ae, ref ValueStringBuilder vsb) 238else if (typeof(T) == typeof(ActivityEvent)) 242ActivityEvent ae = (ActivityEvent)(object)current.Value!;
System\Diagnostics\DsesActivitySourceListener.cs (1)
158[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(ActivityEvent))]