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
disposingboolTrue 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
correlationIdstringThe correlation ID.
statusTraceStatusThe trace status.
Returns
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
operationNamestringThe operation name.
correlationIdstringThe correlation ID.
parentContextobjectThe parent context.
tagsDictionary<string, object>Additional tags.
Returns
- TraceContext
The trace context.