Class ProtoTraceEntry
One row of the trace: a timed operation or an event, with its attributes and outcome.
public sealed record ProtoTraceEntry : IEquatable<ProtoTraceEntry>
- Inheritance
-
ProtoTraceEntry
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoTraceEntry(string, string?, ProtoTraceEntryKind, string, string, string, ProtoTracePhase, DateTimeOffset, TimeSpan?, ProtoTraceOutcome, IReadOnlyDictionary<string, string?>, ProtoTraceError?, string?, string?, int, IReadOnlyList<ProtoTraceSection>?)
One row of the trace: a timed operation or an event, with its attributes and outcome.
public ProtoTraceEntry(string Id, string? ParentId, ProtoTraceEntryKind EntryKind, string Kind, string Name, string Source, ProtoTracePhase Phase, DateTimeOffset TimestampUtc, TimeSpan? Duration, ProtoTraceOutcome Outcome, IReadOnlyDictionary<string, string?> Attributes, ProtoTraceError? Error = null, string? EntityKind = null, string? EntityId = null, int Count = 1, IReadOnlyList<ProtoTraceSection>? Sections = null)
Parameters
IdstringParentIdstringEntryKindProtoTraceEntryKindKindstringNamestringSourcestringPhaseProtoTracePhaseTimestampUtcDateTimeOffsetDurationTimeSpan?OutcomeProtoTraceOutcomeAttributesIReadOnlyDictionary<string, string>ErrorProtoTraceErrorEntityKindstringEntityIdstringCountintSectionsIReadOnlyList<ProtoTraceSection>
Properties
Attributes
public IReadOnlyDictionary<string, string?> Attributes { get; init; }
Property Value
Count
public int Count { get; init; }
Property Value
Duration
public TimeSpan? Duration { get; init; }
Property Value
EntityId
public string? EntityId { get; init; }
Property Value
EntityKind
public string? EntityKind { get; init; }
Property Value
EntryKind
public ProtoTraceEntryKind EntryKind { get; init; }
Property Value
Error
public ProtoTraceError? Error { get; init; }
Property Value
Id
public string Id { get; init; }
Property Value
Kind
public string Kind { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Outcome
public ProtoTraceOutcome Outcome { get; init; }
Property Value
ParentId
public string? ParentId { get; init; }
Property Value
Phase
public ProtoTracePhase Phase { get; init; }
Property Value
Sections
public IReadOnlyList<ProtoTraceSection>? Sections { get; init; }
Property Value
Source
public string Source { get; init; }
Property Value
TimestampUtc
public DateTimeOffset TimestampUtc { get; init; }