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§
- Trace
Context - OTel-style trace context extracted from the current span.
Enums§
- Invocation
Kind - 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.