Class BowireTraceEntry

Namespace
Kuestenlogik.Bowire.Tracing
Assembly
Kuestenlogik.Bowire.dll

#1052 — one thing Bowire saw belong to a trace: a call it made, a frame a stream delivered, or a span an OTLP exporter sent it.

public sealed record BowireTraceEntry : IEquatable<BowireTraceEntry>
Inheritance
BowireTraceEntry
Implements
Inherited Members

Constructors

BowireTraceEntry(long, string, string?, string?, string, string, string, string, string?, long, long?, string?, string?)

#1052 — one thing Bowire saw belong to a trace: a call it made, a frame a stream delivered, or a span an OTLP exporter sent it.

public BowireTraceEntry(long Sequence, string TraceId, string? SpanId, string? ParentSpanId, string Kind, string Protocol, string Service, string Method, string? ServerUrl, long StartedAtMs, long? DurationMs, string? Status, string? Body)

Parameters

Sequence long

Position in the log, monotonic: the page cursor.

TraceId string

The W3C trace id, 32 lower-case hex digits.

SpanId string

The span id, when the source names one.

ParentSpanId string

The parent span id, for an OTLP span.

Kind string

call, frame or span.

Protocol string

The plugin id (grpc, mqtt), or otlp for a span.

Service string

The service, or for a span the emitting service's name.

Method string

The method or topic, or for a span its name.

ServerUrl string

Where a call went.

StartedAtMs long

Unix milliseconds.

DurationMs long?

How long a call or span took; null for a frame.

Status string

A call's status, a span's status code.

Body string

The response or the frame, as text; null for a span.

Properties

Body

The response or the frame, as text; null for a span.

public string? Body { get; init; }

Property Value

string

DurationMs

How long a call or span took; null for a frame.

public long? DurationMs { get; init; }

Property Value

long?

Kind

call, frame or span.

public string Kind { get; init; }

Property Value

string

Method

The method or topic, or for a span its name.

public string Method { get; init; }

Property Value

string

ParentSpanId

The parent span id, for an OTLP span.

public string? ParentSpanId { get; init; }

Property Value

string

Protocol

The plugin id (grpc, mqtt), or otlp for a span.

public string Protocol { get; init; }

Property Value

string

Sequence

Position in the log, monotonic: the page cursor.

public long Sequence { get; init; }

Property Value

long

ServerUrl

Where a call went.

public string? ServerUrl { get; init; }

Property Value

string

Service

The service, or for a span the emitting service's name.

public string Service { get; init; }

Property Value

string

SpanId

The span id, when the source names one.

public string? SpanId { get; init; }

Property Value

string

StartedAtMs

Unix milliseconds.

public long StartedAtMs { get; init; }

Property Value

long

Status

A call's status, a span's status code.

public string? Status { get; init; }

Property Value

string

TraceId

The W3C trace id, 32 lower-case hex digits.

public string TraceId { get; init; }

Property Value

string

Methods

Deconstruct(out long, out string, out string?, out string?, out string, out string, out string, out string, out string?, out long, out long?, out string?, out string?)

public void Deconstruct(out long Sequence, out string TraceId, out string? SpanId, out string? ParentSpanId, out string Kind, out string Protocol, out string Service, out string Method, out string? ServerUrl, out long StartedAtMs, out long? DurationMs, out string? Status, out string? Body)

Parameters

Sequence long
TraceId string
SpanId string
ParentSpanId string
Kind string
Protocol string
Service string
Method string
ServerUrl string
StartedAtMs long
DurationMs long?
Status string
Body string

Equals(BowireTraceEntry?)

public bool Equals(BowireTraceEntry? other)

Parameters

other BowireTraceEntry

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireTraceEntry?, BowireTraceEntry?)

public static bool operator ==(BowireTraceEntry? left, BowireTraceEntry? right)

Parameters

left BowireTraceEntry
right BowireTraceEntry

Returns

bool

operator !=(BowireTraceEntry?, BowireTraceEntry?)

public static bool operator !=(BowireTraceEntry? left, BowireTraceEntry? right)

Parameters

left BowireTraceEntry
right BowireTraceEntry

Returns

bool