ActivityTracerType

PackageAxial.Telemetry
Captures an application-owned ActivitySource so application code can trace its own workflows without repeating the source at every call site. The only way to obtain a value of this type is ActivityTracer.create, so there is no code path that traces without an assigned application source.

Specification

Kind
Type
Members
3
Examples
0
TraceSignature
this.Trace
TraceWithSignature
this.TraceWith
SourceSignature
this.Source

Summary

NameSignatureSynopsis
Tracethis.TraceWraps a flow in a span from this tracer's activity source, rendering typed errors with string.
TraceWiththis.TraceWithWraps a flow in a span from this tracer's activity source, using the supplied typed-error renderer.
Sourcethis.SourceThe application-owned activity source this tracer emits from.

Trace

this.Trace
Member
Wraps a flow in a span from this tracer's activity source, rendering typed errors with string.

Parameters

NameTypeDescription
namestringThe name of the activity.

Returns

Flow<'env, 'error, 'value> -> Flow<'env, 'error, 'value>

TraceWith

this.TraceWith
Member
Wraps a flow in a span from this tracer's activity source, using the supplied typed-error renderer.

Parameters

NameTypeDescription
renderError'error -> stringRenders typed errors for the axial.flow.error attribute.
namestringThe name of the activity.

Returns

Flow<'env, 'error, 'value> -> Flow<'env, 'error, 'value>

Source

this.Source
Member
The application-owned activity source this tracer emits from.

Returns

ActivitySource