31 references to AddEvent
aspire (7)
Projects\ProcessGuestLauncher.cs (2)
208
activity.
AddEvent
(new ActivityEvent(eventName));
212
activity.
AddEvent
(new ActivityEvent(eventName, tags: new ActivityTagsCollection
Telemetry\AspireCliTelemetry.cs (2)
219
activity.
AddEvent
(new ActivityEvent(TelemetryConstants.Events.Error, tags: tags));
493
activity.
AddEvent
(new ActivityEvent(TelemetryConstants.Events.InternalMicrosoftProbe, tags: tags));
Telemetry\ProfilingTelemetry.cs (3)
833
activity?.
AddEvent
(new ActivityEvent(Events.BackchannelConnectAttempt, tags: new ActivityTagsCollection
874
activity?.
AddEvent
(new ActivityEvent(Events.DotNetProcessStarted, tags: new ActivityTagsCollection
1184
private void AddEvent(string name) => activity?.
AddEvent
(new ActivityEvent(name));
Aspire.Hosting (10)
Diagnostics\ProfilingTelemetry.cs (10)
779
activity?.
AddEvent
(new ActivityEvent(Events.DcpServiceAddressAllocated, tags: new ActivityTagsCollection
787
activity?.
AddEvent
(new ActivityEvent(Events.DcpServiceAddressAllocationFailed, tags: new ActivityTagsCollection
806
activity.
AddEvent
(new ActivityEvent(startupEvent.Name, startupEvent.Timestamp));
816
activity?.
AddEvent
(new ActivityEvent(Events.KubernetesApiRetry, tags: new ActivityTagsCollection
839
activity?.
AddEvent
(new ActivityEvent(Events.ResourceWaitCancelled, tags: new ActivityTagsCollection
897
activity?.
AddEvent
(new ActivityEvent(Events.KubernetesClientReady, tags: new ActivityTagsCollection
1010
activity.
AddEvent
(new ActivityEvent(Events.Exception, tags: new ActivityTagsCollection
1089
private void AddEvent(string name) => activity?.
AddEvent
(new ActivityEvent(name));
1124
activity.
AddEvent
(new ActivityEvent(eventName, tags: tags));
1170
activity.
AddEvent
(new ActivityEvent(eventName, timestamp, tags));
Aspire.Hosting.RemoteHost (3)
Diagnostics\RemoteHostProfilingTelemetry.cs (3)
369
activity?.
AddEvent
(new ActivityEvent(Events.JsonRpcClientConnected, tags: new ActivityTagsCollection
451
activity.
AddEvent
(new ActivityEvent(Events.Exception, tags: new ActivityTagsCollection
477
private void AddEvent(string name) => activity?.
AddEvent
(new ActivityEvent(name));
Aspire.StackExchange.Redis (3)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (3)
226
activity.
AddEvent
(new ActivityEvent("Enqueued", enqueued));
227
activity.
AddEvent
(new ActivityEvent("Sent", send));
228
activity.
AddEvent
(new ActivityEvent("ResponseReceived", response));
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryClient.cs (1)
360
Activity.Current?.
AddEvent
(@event);
Stress.ApiService (6)
Program.cs (5)
850
activity.
AddEvent
(new ActivityEvent("gen_ai.evaluation.result", tags: eval1Tags));
860
activity.
AddEvent
(new ActivityEvent("gen_ai.evaluation.result", tags: eval2Tags));
870
activity.
AddEvent
(new ActivityEvent("gen_ai.evaluation.result", tags: eval3Tags));
881
activity.
AddEvent
(new ActivityEvent("gen_ai.evaluation.result", tags: eval4Tags));
889
activity.
AddEvent
(new ActivityEvent("gen_ai.evaluation.result", tags: eval5Tags));
TraceCreator.cs (1)
126
activity.
AddEvent
(new ActivityEvent($"event-{i}", DateTimeOffset.UtcNow.AddMilliseconds(1), activityTags));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
609
return
AddEvent
(new ActivityEvent(ExceptionEventName, timestamp, ref exceptionTags));