Class OtlpSpanReader

Namespace
Kuestenlogik.Bowire.Protocol.Otlp
Assembly
Kuestenlogik.Bowire.Protocol.Otlp.dll

#1052 — the spans of an OTLP trace export, as trace-log entries: trace id, span id, parent span id, name, the emitting service (service.name), start, duration and status. Reads OTLP/JSON and OTLP/protobuf (ExportTraceServiceRequest); only the fields a timeline needs are decoded, the rest is skipped by wire type.

public static class OtlpSpanReader
Inheritance
OtlpSpanReader
Inherited Members

Methods

FromJson(string)

The spans of a JSON export (OTLP/JSON: hex ids, nanoseconds as strings or numbers).

public static IReadOnlyList<BowireTraceEntry> FromJson(string json)

Parameters

json string

Returns

IReadOnlyList<BowireTraceEntry>

FromProtobuf(ReadOnlySpan<byte>)

The spans of a protobuf export (ExportTraceServiceRequest).

public static IReadOnlyList<BowireTraceEntry> FromProtobuf(ReadOnlySpan<byte> request)

Parameters

request ReadOnlySpan<byte>

Returns

IReadOnlyList<BowireTraceEntry>