adk_live_observability (erlang_adk v0.7.0)

View Source

Fail-open, metadata-only observability for Live sessions.

Live media, text, transcripts, tool arguments/results, credentials, and resumption handles are deliberately absent from this API. Operation spans use the v2 observability signal path and metrics use the bounded v2 registry.

Summary

Types

state/0

-type state() :: disabled | map().

Functions

close(Status, Obs)

-spec close(term(), state()) -> state().

finish_connect(Status, Obs)

-spec finish_connect(term(), state()) -> state().

finish_receive(Handle, Status, Obs)

-spec finish_receive(undefined | map(), term(), state()) -> state().

finish_tool(Handle, Status, Obs)

-spec finish_tool(undefined | map(), term(), state()) -> state().

lifecycle(Name, Obs)

-spec lifecycle(atom(), state()) -> state().

media(Direction, Modality, Bytes, Obs)

-spec media(input | output, audio | video, non_neg_integer(), state()) -> state().

new(SessionId, Model, _)

-spec new(binary(), binary(), disabled | map()) -> {ok, state()} | {error, term()}.

start_connect(Phase, Obs0)

-spec start_connect(initial | reconnect, state()) -> state().

start_receive(Obs)

-spec start_receive(state()) -> undefined | map().

start_tool(Name, CallId, Obs)

-spec start_tool(binary(), binary(), state()) -> undefined | map().

tool(Outcome, Name, Obs)

-spec tool(atom(), binary(), state()) -> state().

validate_config(Config)

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