ActivityModule

PackageAxial.Telemetry

Summary

NameSignatureSynopsis
Operations
runtimeSourceActivity.runtimeSource The activity source for Axial's own runtime spans (fiber lifecycle, defects, and metrics).
traceWithSourceActivity.traceWithSource activitySource renderError name sourceFlowWraps a flow in a new activity from the supplied application-owned source, exports the ambient telemetry context, and stamps the final exit onto the span.
traceOnActivity.traceOn activitySource name sourceFlowWraps a flow in an application-owned activity source and renders typed errors with string.
withTracerActivity.withTracer tracer (Flow operation)Installs an application-owned as the ambient tracer for the scope of sourceFlow.
traceWithActivity.traceWith renderError name sourceFlowWraps a flow in the ambient application tracer installed by withTracer, using the supplied typed-error renderer.
traceActivity.trace name sourceFlowWraps a flow in the ambient application tracer installed by withTracer, and renders typed errors with string.

Operations

kind:member

runtimeSource

Activity.runtimeSource
Member
The activity source for Axial's own runtime spans (fiber lifecycle, defects, and metrics).

Returns

ActivitySource
kind:member

traceWithSource

Activity.traceWithSource activitySource renderError name sourceFlow
Member
Wraps a flow in a new activity from the supplied application-owned source, exports the ambient telemetry context, and stamps the final exit onto the span.

Parameters

NameTypeDescription
activitySourceActivitySourceThe application-owned activity source that emits the span.
renderError'error -> stringRenders typed errors for the axial.flow.error attribute.
namestringThe name of the activity.
sourceFlowFlow<'env, 'error, 'value>The flow to trace.

Returns

Flow<'env, 'error, 'value>
kind:member

traceOn

Activity.traceOn activitySource name sourceFlow
Member
Wraps a flow in an application-owned activity source and renders typed errors with string.

Parameters

NameTypeDescription
activitySourceActivitySourceThe application-owned activity source that emits the span.
namestringThe name of the activity.
sourceFlowFlow<'env, 'error, 'value>The flow to trace.

Returns

Flow<'env, 'error, 'value>
kind:member

withTracer

Activity.withTracer tracer (Flow operation)
Member
Installs an application-owned ActivityTracer as the ambient tracer for the scope of sourceFlow. trace and traceWith read this ambient tracer; child fibers forked within the scope inherit it.

Parameters

NameTypeDescription
tracerActivityTracerThe application-owned tracer to install.
Flow operationFlow<'env, 'error, 'value>

Returns

Flow<'env, 'error, 'value>
kind:member

traceWith

Activity.traceWith renderError name sourceFlow
Member
Wraps a flow in the ambient application tracer installed by withTracer, using the supplied typed-error renderer. Throws if no ambient tracer is installed. Use traceWithSource to supply a source explicitly instead of relying on the ambient one.

Parameters

NameTypeDescription
renderError'error -> string
namestring
sourceFlowFlow<'env, 'error, 'value>

Returns

Flow<'env, 'error, 'value>
kind:member

trace

Activity.trace name sourceFlow
Member
Wraps a flow in the ambient application tracer installed by withTracer, and renders typed errors with string. Throws if no ambient tracer is installed. Use traceOn to supply a source explicitly instead of relying on the ambient one.

Parameters

NameTypeDescription
namestring
sourceFlowFlow<'env, 'error, 'value>

Returns

Flow<'env, 'error, 'value>