Class BowireTraceLog

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

#1052 — what this Bowire saw of each trace, kept in memory: the calls it made with their trace context, the frames that carried one, and the OTLP spans it received. A bounded ring — the oldest entries go first — whose size is Bowire:Traces:Capacity. Reading pages by sequence number, so an entry added while a client pages is neither seen twice nor skipped.

public sealed class BowireTraceLog
Inheritance
BowireTraceLog
Inherited Members

Constructors

BowireTraceLog(int)

A log that keeps at most capacity entries.

public BowireTraceLog(int capacity = 5000)

Parameters

capacity int

Fields

DefaultCapacity

The default for Bowire:Traces:Capacity.

public const int DefaultCapacity = 5000

Field Value

int

Methods

Add(BowireTraceEntry)

Add an entry (its Sequence is assigned here) and return it.

public BowireTraceEntry Add(BowireTraceEntry entry)

Parameters

entry BowireTraceEntry

Returns

BowireTraceEntry

All(string)

Every entry of traceId the log still holds.

public IReadOnlyList<BowireTraceEntry> All(string traceId)

Parameters

traceId string

Returns

IReadOnlyList<BowireTraceEntry>

For(IServiceProvider?)

The host's log: the one AddBowire registered (sized by Bowire:Traces:Capacity), or for a host that only maps the endpoints, one shared by the process.

public static BowireTraceLog For(IServiceProvider? services)

Parameters

services IServiceProvider

Returns

BowireTraceLog

Page(string, int, string?)

The entries of traceId after pageToken (a sequence number from an earlier page; null from the start), at most pageSize of them, in the order they were added.

public BowireTracePage Page(string traceId, int pageSize, string? pageToken)

Parameters

traceId string
pageSize int
pageToken string

Returns

BowireTracePage