31 references to AddEvent
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)
360Activity.Current?.AddEvent(@event);
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));