Class TestActivityEvent

Namespace
XBullet.EasyTesting.Observability
Assembly
XBullet.EasyTesting.Observability.dll

One event captured from a completed activity.

public sealed class TestActivityEvent
Inheritance
TestActivityEvent
Inherited Members

Constructors

TestActivityEvent(string, DateTimeOffset, IReadOnlyDictionary<string, object?>)

Creates an immutable captured activity event.

public TestActivityEvent(string name, DateTimeOffset timestamp, IReadOnlyDictionary<string, object?> tags)

Parameters

name string

The event name.

timestamp DateTimeOffset

The absolute UTC instant at which the event was recorded.

tags IReadOnlyDictionary<string, object>

The event tags. The dictionary is retained without copying and can contain sensitive or mutable values; callers should not mutate it after construction.

Properties

Name

Gets the event name.

public string Name { get; }

Property Value

string

The event name captured from the activity.

Tags

Gets a stable copy of the event tags.

public IReadOnlyDictionary<string, object?> Tags { get; }

Property Value

IReadOnlyDictionary<string, object>

The retained read-only tags. Values are not deep-cloned or redacted.

Timestamp

Gets the event timestamp.

public DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset

The absolute UTC instant at which the event was recorded.