AttestoMCP.Server.Telemetry (attesto_mcp_server v0.8.0)

Copy Markdown View Source

Telemetry helpers for protocol, auth, handler, and transport events.

Summary

Functions

Emits a safe event after removing credential and private payload fields.

Emits start/stop (or exception) events around a callback.

Functions

execute(event, measurements \\ %{}, metadata \\ %{})

@spec execute(atom() | [atom()], map(), map()) :: :ok

Emits a safe event after removing credential and private payload fields.

span(event, metadata, fun)

@spec span(atom() | [atom()], map(), (-> {term(), map()})) :: term()

Emits start/stop (or exception) events around a callback.