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
SequencelongPosition in the log, monotonic: the page cursor.
TraceIdstringThe W3C trace id, 32 lower-case hex digits.
SpanIdstringThe span id, when the source names one.
ParentSpanIdstringThe parent span id, for an OTLP span.
Kindstringcall,frameorspan.ProtocolstringThe plugin id (
grpc,mqtt), orotlpfor a span.ServicestringThe service, or for a span the emitting service's name.
MethodstringThe method or topic, or for a span its name.
ServerUrlstringWhere a call went.
StartedAtMslongUnix milliseconds.
DurationMslong?How long a call or span took; null for a frame.
StatusstringA call's status, a span's status code.
BodystringThe 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
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
Method
The method or topic, or for a span its name.
public string Method { get; init; }
Property Value
ParentSpanId
The parent span id, for an OTLP span.
public string? ParentSpanId { get; init; }
Property Value
Protocol
The plugin id (grpc, mqtt), or otlp for a span.
public string Protocol { get; init; }
Property Value
Sequence
Position in the log, monotonic: the page cursor.
public long Sequence { get; init; }
Property Value
ServerUrl
Where a call went.
public string? ServerUrl { get; init; }
Property Value
Service
The service, or for a span the emitting service's name.
public string Service { get; init; }
Property Value
SpanId
The span id, when the source names one.
public string? SpanId { get; init; }
Property Value
StartedAtMs
Unix milliseconds.
public long StartedAtMs { get; init; }
Property Value
Status
A call's status, a span's status code.
public string? Status { get; init; }
Property Value
TraceId
The W3C trace id, 32 lower-case hex digits.
public string TraceId { get; init; }
Property Value
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
SequencelongTraceIdstringSpanIdstringParentSpanIdstringKindstringProtocolstringServicestringMethodstringServerUrlstringStartedAtMslongDurationMslong?StatusstringBodystring
Equals(BowireTraceEntry?)
public bool Equals(BowireTraceEntry? other)
Parameters
otherBowireTraceEntry
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireTraceEntry?, BowireTraceEntry?)
public static bool operator ==(BowireTraceEntry? left, BowireTraceEntry? right)
Parameters
leftBowireTraceEntryrightBowireTraceEntry
Returns
operator !=(BowireTraceEntry?, BowireTraceEntry?)
public static bool operator !=(BowireTraceEntry? left, BowireTraceEntry? right)
Parameters
leftBowireTraceEntryrightBowireTraceEntry