Interface IProtoTraceSource

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Provides immutable snapshots of the automatic ProtoTest execution trace.

public interface IProtoTraceSource
Extension Methods

Methods

FindWriter(ActivityTraceId)

Finds the test writer whose trace context an application span belongs to, or null when the span cannot be linked to a test - for example when the application is remote or emits different trace context. Application telemetry callbacks run outside the test's flow, so they cannot rely on the ambient test context; the W3C trace id is what links them back.

IProtoTraceWriter? FindWriter(ActivityTraceId traceId)

Parameters

traceId ActivityTraceId

Returns

IProtoTraceWriter

Snapshot()

ProtoTraceRun Snapshot()

Returns

ProtoTraceRun