30 instantiations of ActivityEvent
aspire (6)
Projects\ProcessGuestLauncher.cs (2)
211
activity.AddEvent(new
ActivityEvent
(eventName));
215
activity.AddEvent(new
ActivityEvent
(eventName, tags: new ActivityTagsCollection
Telemetry\AspireCliTelemetry.cs (1)
407
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)
386
activity?.AddEvent(new
ActivityEvent
(Events.JsonRpcClientConnected, tags: new ActivityTagsCollection
468
activity.AddEvent(new
ActivityEvent
(Events.Exception, tags: new ActivityTagsCollection
503
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)
383
var @event = new
ActivityEvent
($"dotnet/cli/{eventName}", tags: MakeTags(properties));
Stress.ApiService (6)
Program.cs (5)
906
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval1Tags));
916
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval2Tags));
926
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval3Tags));
937
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval4Tags));
945
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)
613
return AddEvent(new
ActivityEvent
(ExceptionEventName, timestamp, ref exceptionTags));
32 references to ActivityEvent
Aspire.Cli.Tests (2)
Telemetry\AspireCliTelemetryTests.cs (2)
754
var
probeEvent = Assert.Single(activity.Events);
782
var
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)
383
var
@event = new ActivityEvent($"dotnet/cli/{eventName}", tags: MakeTags(properties));
System.Diagnostics.DiagnosticSource (28)
System\Diagnostics\Activity.cs (17)
65
private static readonly IEnumerable<
ActivityEvent
> s_emptyEvents = new DiagLinkedList<
ActivityEvent
>();
115
private DiagLinkedList<
ActivityEvent
>? _events;
358
/// Events is the list of all <see cref="
ActivityEvent
" /> objects attached to this Activity object.
359
/// If there is not any <see cref="
ActivityEvent
" /> object attached to the Activity object, Events will return empty list.
361
public IEnumerable<
ActivityEvent
> Events
423
/// Enumerate the <see cref="
ActivityEvent
" /> objects attached to this Activity object.
426
public Enumerator<
ActivityEvent
> EnumerateEvents() => new Enumerator<
ActivityEvent
>(_events?.First);
536
/// Add <see cref="
ActivityEvent
" /> object to the <see cref="Events" /> list.
538
/// <param name="e"> object of <see cref="
ActivityEvent
"/> to add to the attached events list.</param>
540
public Activity AddEvent(
ActivityEvent
e)
542
if (_events != null || Interlocked.CompareExchange(ref _events, new DiagLinkedList<
ActivityEvent
>(e), null) != null)
551
/// Add an <see cref="
ActivityEvent
" /> object containing the exception information to the <see cref="Events" /> list.
561
/// before the <see cref="
ActivityEvent
" /> object is added to the <see cref="Events" /> list.</para>
2304
public 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.
57
/// Gets the <see cref="
ActivityEvent
"/> name.
62
/// Gets the <see cref="
ActivityEvent
"/> timestamp.
72
/// 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)
187
private static void ActivityEventToString(ref
ActivityEvent
ae, ref ValueStringBuilder vsb)
238
else if (typeof(T) == typeof(
ActivityEvent
))
242
ActivityEvent
ae = (
ActivityEvent
)(object)current.Value!;
System\Diagnostics\DsesActivitySourceListener.cs (1)
158
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(
ActivityEvent
))]