19 references to Events
Aspire.Cli.Tests (12)
Projects\GuestRuntimeTests.cs (6)
1007Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestProcessResolveStart); 1008Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestProcessResolved); 1009Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestProcessStart); 1010Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestProcessStarted); 1011Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestFirstStdout); 1012Assert.Contains(activity.Events, @event => @event.Name == ProfilingTelemetry.Events.GuestProcessExited);
Telemetry\AspireCliTelemetryTests.cs (6)
125var events = activity.Events.ToList(); 188var events = reportedActivity.Events.ToList(); 192Assert.Empty(childActivity.Events); 208Assert.Empty(activity.Events); 677var probeEvent = Assert.Single(activity.Events); 705var probeEvent = Assert.Single(fixture.CapturedActivity!.Events);
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);
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryDiskLogger.cs (1)
91events: [.. activity.Events.Select(e => new EventModel(
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
532/// Add <see cref="ActivityEvent" /> object to the <see cref="Events" /> list. 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);