Table of Contents

Class DistributedTracer

Namespace
DotCompute.Abstractions.Telemetry.Providers
Assembly
DotCompute.Abstractions.dll

Abstract base class for distributed tracers.

public abstract class DistributedTracer : IDisposable
Inheritance
DistributedTracer
Implements
Inherited Members
Extension Methods

Methods

Dispose()

Disposes the distributed tracer.

public void Dispose()

Dispose(bool)

Releases resources used by the distributed tracer.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

True if called from Dispose(), false if called from finalizer.

FinishTraceAsync(string, TraceStatus)

Finishes a trace.

public abstract Task<TraceData?> FinishTraceAsync(string correlationId, TraceStatus status)

Parameters

correlationId string

The correlation ID.

status TraceStatus

The trace status.

Returns

Task<TraceData>

The trace data.

StartTrace(string, string?, object?, Dictionary<string, object?>?)

Starts a new trace.

public abstract TraceContext StartTrace(string operationName, string? correlationId, object? parentContext, Dictionary<string, object?>? tags)

Parameters

operationName string

The operation name.

correlationId string

The correlation ID.

parentContext object

The parent context.

tags Dictionary<string, object>

Additional tags.

Returns

TraceContext

The trace context.