<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0-preview.2.23128.3" />

ActivityEvent

public struct ActivityEvent
A text annotation associated with a collection of tags.
public string Name { get; }

Gets the ActivityEvent name.

public IEnumerable<KeyValuePair<string, object>> Tags { get; }

Gets the collection of tags associated with the event.

public DateTimeOffset Timestamp { get; }

Gets the ActivityEvent timestamp.

public ActivityEvent(string name)

Initializes a new instance of the ActivityEvent class.

public ActivityEvent(string name, DateTimeOffset timestamp = default, ActivityTagsCollection tags = null)

Initializes a new instance of the ActivityEvent class.

public Enumerator<KeyValuePair<string, object>> EnumerateTagObjects()

Enumerate the tags attached to this ActivityEvent object.