adk_observability_signal (erlang_adk v0.7.0)

View Source

Versioned SDK-neutral operation span signal.

Signals use Unix nanoseconds for export and monotonic native time for duration. The returned handle is runtime-only and must not be persisted or exposed to plugins/tools. Attribute limits are enforced before an exporter or telemetry handler receives the signal.

Summary

Types

span_handle/0

-type span_handle() :: map().

Functions

finish_span(_, Status0, EndAttributes0)

-spec finish_span(span_handle(), term(), map()) -> {ok, map()} | {error, term()}.

schema_version()

start_span(Name, Kind0, Context, Attributes0)

-spec start_span(binary(), atom() | binary(), map(), map()) ->
                    {ok, span_handle(), map()} | {error, term()}.

validate(Signal)

-spec validate(map()) -> {ok, map()} | {error, term()}.