adk_otlp_json (erlang_adk v0.7.0)

View Source

Strict, dependency-light OTLP/HTTP JSON projection.

Completed v2 operation spans are mapped to ExportTraceServiceRequest and metadata-only v1 envelopes are mapped to ExportLogsServiceRequest. The mapper follows the OTLP JSON deviations from proto3 JSON: trace/span IDs remain hexadecimal, enum values are numbers, and every int64 value is a decimal string. It never maps prompt/response/media/tool payload content.

Summary

Functions

any_value(Value)

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

mapping_version()

-spec mapping_version() -> binary().

to_request(Signal0)

-spec to_request(map()) -> {ok, traces | logs, map()} | {skip, term()} | {error, term()}.