Skip to main content

Module observability

Module observability 

Source
Expand description

Observability helpers for plugin invocations.

Every plugin call should be wrapped in a tracing span that carries:

  • plugin id + version + abi-major
  • qualified function name and surface kind
  • input batch row count / byte count
  • result status (ok / err)

When tracing-opentelemetry is configured on the host, these spans ship to whichever OTLP collector the user has wired up — preserving a single TraceId across query → plugin → outbound HTTP.

Structs§

TraceContext
OTel-style trace context extracted from the current span.

Enums§

InvocationKind
Kind label attached to every plugin-call span.

Functions§

current_trace_context
Return the current trace context, or an empty context when none is active.
record_invocation
Tracing helper: emit a single structured event for one plugin call.