ActivityTracerType

PackageAxial.Telemetry
Creates ActivityTracer values.

Specification

Kind
Type
Members
4
Examples
0
createSignature
ActivityTracer.create source
TraceSignature
this.Trace
TraceWithSignature
this.TraceWith
SourceSignature
this.Source

Summary

NameSignatureSynopsis
Operations
createActivityTracer.create sourceCaptures an application-owned activity source.
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.

Operations

kind:member

create

ActivityTracer.create source
Member
Captures an application-owned activity source.

Parameters

NameTypeDescription
sourceActivitySourceThe application-owned activity source that emits application spans.

Returns

ActivityTracer
kind:member

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>
kind:member

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>
kind:member

Source

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

Returns

ActivitySource