Vibe.Telemetry (vibe v0.2.3)

Copy Markdown View Source

Local telemetry recorder and introspection API for Vibe.

Vibe stores sanitized telemetry events in the local SQLite database so agents can inspect their own runtime without requiring an external collector.

Summary

Functions

Returns a specification to start this module under a supervisor.

Intentional facade for the public Vibe API boundary.

Receives telemetry callbacks and forwards sanitized event data to the recorder.

Types

event()

@type event() :: %{
  event: [atom()],
  measurements: map(),
  metadata: map(),
  at: String.t()
}

Functions

all(opts \\ [])

@spec all(keyword()) :: [event()]

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear()

@spec clear() :: :ok | {:error, term()}

events()

@spec events() :: [[atom()]]

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

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

Intentional facade for the public Vibe API boundary.

handle_event(event_name, measurements, metadata, recorder)

Receives telemetry callbacks and forwards sanitized event data to the recorder.

path()

@spec path() :: String.t()

recent(limit \\ 50)

@spec recent(pos_integer()) :: [event()]

span(event_prefix, metadata, fun)

@spec span([atom()], map(), (-> result)) :: result when result: term()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

summary(opts \\ [])

@spec summary(keyword()) :: map()