Class ProtoTraceEntry

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

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

Id string
ParentId string
EntryKind ProtoTraceEntryKind
Kind string
Name string
Source string
Phase ProtoTracePhase
TimestampUtc DateTimeOffset
Duration TimeSpan?
Outcome ProtoTraceOutcome
Attributes IReadOnlyDictionary<string, string>
Error ProtoTraceError
EntityKind string
EntityId string
Count int
Sections IReadOnlyList<ProtoTraceSection>

Properties

Attributes

public IReadOnlyDictionary<string, string?> Attributes { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Count

public int Count { get; init; }

Property Value

int

Duration

public TimeSpan? Duration { get; init; }

Property Value

TimeSpan?

EntityId

public string? EntityId { get; init; }

Property Value

string

EntityKind

public string? EntityKind { get; init; }

Property Value

string

EntryKind

public ProtoTraceEntryKind EntryKind { get; init; }

Property Value

ProtoTraceEntryKind

Error

public ProtoTraceError? Error { get; init; }

Property Value

ProtoTraceError

Id

public string Id { get; init; }

Property Value

string

Kind

public string Kind { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Outcome

public ProtoTraceOutcome Outcome { get; init; }

Property Value

ProtoTraceOutcome

ParentId

public string? ParentId { get; init; }

Property Value

string

Phase

public ProtoTracePhase Phase { get; init; }

Property Value

ProtoTracePhase

Sections

public IReadOnlyList<ProtoTraceSection>? Sections { get; init; }

Property Value

IReadOnlyList<ProtoTraceSection>

Source

public string Source { get; init; }

Property Value

string

TimestampUtc

public DateTimeOffset TimestampUtc { get; init; }

Property Value

DateTimeOffset