40 references to Events
Aspire.Hosting (38)
Diagnostics\ProfilingTelemetry.cs (29)
779activity?.AddEvent(new ActivityEvent(Events.DcpServiceAddressAllocated, tags: new ActivityTagsCollection 787activity?.AddEvent(new ActivityEvent(Events.DcpServiceAddressAllocationFailed, tags: new ActivityTagsCollection 793public void AddAppHostHostStarting() => AddEvent(Events.AppHostHostStarting); 795public void AddAppHostHostStarted() => AddEvent(Events.AppHostHostStarted); 810public void AddKubeconfigLockAcquired() => AddEvent(Events.KubeconfigLockAcquired); 812public void AddKubeconfigReadComplete() => AddEvent(Events.KubeconfigReadComplete); 816activity?.AddEvent(new ActivityEvent(Events.KubernetesApiRetry, tags: new ActivityTagsCollection 825public void AddKubernetesApiTimeout() => AddEvent(Events.KubernetesApiTimeout); 827public void AddKubernetesClientCreated() => AddEvent(Events.KubernetesClientCreated); 829public void AddJsonRpcStreamFirstItemEvent() => AddEvent(Events.JsonRpcStreamFirstItem); 831public void AddJsonRpcStreamCompletedEvent() => AddEvent(Events.JsonRpcStreamCompleted); 833public void AddDashboardWaitHealthyCompleted() => AddEvent(Events.DashboardWaitHealthyCompleted); 835public void AddDashboardWaitHealthyFailed() => AddEvent(Events.DashboardWaitHealthyFailed); 839activity?.AddEvent(new ActivityEvent(Events.ResourceWaitCancelled, tags: new ActivityTagsCollection 847AddResourceWaitEvent(Events.ResourceWaitCompleted, resourceEvent, waitCondition); 850AddResourceWaitEvent(Events.ResourceWaitObserved, resourceEvent, waitCondition); 891public void AddKubeconfigFileDetected() => AddEvent(Events.KubeconfigFileDetected); 897activity?.AddEvent(new ActivityEvent(Events.KubernetesClientReady, tags: new ActivityTagsCollection 943public void AddBackchannelSocketDeleted() => AddEvent(Events.BackchannelSocketDeleted); 945public void AddBackchannelListening() => AddEvent(Events.BackchannelListening); 947public void AddBackchannelReadyPublished() => AddEvent(Events.BackchannelReadyPublished); 949public void AddBackchannelClientAccepted() => AddEvent(Events.BackchannelClientAccepted); 951public void AddBackchannelRpcListening() => AddEvent(Events.BackchannelRpcListening); 953public void AddBackchannelConnectedPublished() => AddEvent(Events.BackchannelConnectedPublished); 1010activity.AddEvent(new ActivityEvent(Events.Exception, tags: new ActivityTagsCollection 1051AddResourceStartupEvent(Events.ResourceStartupObserved, snapshot, timestamp); 1054AddResourceStartupEvent(Events.ResourceStartupStateChanged, snapshot, timestamp, previousState: previousState); 1057AddResourceStartupEvent(Events.ResourceStartupHealthChanged, snapshot, timestamp, previousHealthStatus: previousHealthStatus); 1060AddResourceStartupEvent(Events.ResourceStartupReady, snapshot, timestamp);
DistributedApplication.cs (5)
161ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostCreateBuilderEntered); 209ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostCreateBuilderEntered); 227ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostCreateBuilderEntered); 453ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostStartAsyncEntered, configuration); 523ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostRunAsyncEntered, configuration);
DistributedApplicationBuilder.cs (4)
189ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostBuilderConstructing); 625ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostBuilderConstructed, _innerBuilder.Configuration); 821ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostBuildStarted, _innerBuilder.Configuration); 844ProfilingTelemetry.RecordAppHostStartupEvent(ProfilingTelemetry.Events.AppHostBuildCompleted, _innerBuilder.Configuration);
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (2)
161Assert.Contains(appHostStartActivity.Events, @event => @event.Name == ProfilingTelemetry.Events.Exception); 184Assert.DoesNotContain(hostStartupActivity.Events, @event => @event.Name == ProfilingTelemetry.Events.AppHostHostStarted);