11 instantiations of ActivityEvent
aspire (1)
Telemetry\AspireCliTelemetry.cs (1)
163
activity.AddEvent(new
ActivityEvent
(TelemetryConstants.Events.Error, tags: tags));
Aspire.StackExchange.Redis (3)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (3)
169
activity.AddEvent(new
ActivityEvent
("Enqueued", enqueued));
170
activity.AddEvent(new
ActivityEvent
("Sent", send));
171
activity.AddEvent(new
ActivityEvent
("ResponseReceived", response));
Stress.ApiService (6)
Program.cs (5)
705
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval1Tags));
715
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval2Tags));
725
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval3Tags));
736
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval4Tags));
744
activity.AddEvent(new
ActivityEvent
("gen_ai.evaluation.result", tags: eval5Tags));
TraceCreator.cs (1)
105
activity.AddEvent(new
ActivityEvent
($"event-{i}", DateTimeOffset.UtcNow.AddMilliseconds(1), activityTags));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
603
return AddEvent(new
ActivityEvent
(ExceptionEventName, timestamp, ref exceptionTags));
30 references to ActivityEvent
Aspire.Cli.Tests (1)
Telemetry\AspireCliTelemetryTests.cs (1)
97
var
exceptionEvent = Assert.Single(events);
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentationOptions.cs (1)
35
/// Gets or sets a value indicating whether or not the <see cref="StackExchangeRedisConnectionInstrumentation"/> should enrich Activity with <see cref="
ActivityEvent
"/> entries about the Redis command processing/lifetime. Defaults to <see cref="bool">true</see>.
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;
354
/// Events is the list of all <see cref="
ActivityEvent
" /> objects attached to this Activity object.
355
/// If there is not any <see cref="
ActivityEvent
" /> object attached to the Activity object, Events will return empty list.
357
public IEnumerable<
ActivityEvent
> Events
419
/// Enumerate the <see cref="
ActivityEvent
" /> objects attached to this Activity object.
422
public Enumerator<
ActivityEvent
> EnumerateEvents() => new Enumerator<
ActivityEvent
>(_events?.First);
526
/// Add <see cref="
ActivityEvent
" /> object to the <see cref="Events" /> list.
528
/// <param name="e"> object of <see cref="
ActivityEvent
"/> to add to the attached events list.</param>
530
public Activity AddEvent(
ActivityEvent
e)
532
if (_events != null || Interlocked.CompareExchange(ref _events, new DiagLinkedList<
ActivityEvent
>(e), null) != null)
541
/// Add an <see cref="
ActivityEvent
" /> object containing the exception information to the <see cref="Events" /> list.
551
/// before the <see cref="
ActivityEvent
" /> object is added to the <see cref="Events" /> list.</para>
2190
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.
45
/// Gets the <see cref="
ActivityEvent
"/> name.
50
/// Gets the <see cref="
ActivityEvent
"/> timestamp.
60
/// 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)
166
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(
ActivityEvent
))]