NoOpSpanExporter
A no-op span exporter that discards all spans. Used when monitoring is disabled or credentials are missing.
A no-op span exporter that discards all spans.
Used when monitoring is disabled or credentials are missing.
export()
Export a batch of spans.
function export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): voidParameters
spans
required:ReadableSpan[]
The spans to export.
resultCallback
required:(result: ExportResult) => void
Callback invoked with the export result.
Returns
void
shutdown()
Shut down the exporter.
async function shutdown(): Promise<void>Returns
Promise<void>
forceFlush()
Flush any pending exports.
async function forceFlush(): Promise<void>Returns
Promise<void>
JudgmentSpanExporter
Span exporter that sends traces to the Judgment platform via OTLP HTTP. Wraps the OpenTelemetry OTLP trace exporter with Judgment-specific authentication headers.
JudgmentSpanProcessor
Span processor that manages span lifecycle, state, and batched export to the Judgment platform. Supports per-span state (counters, lists), partial-span emission for streaming updates, and baggage propagation onto child spans. Created automatically by `Tracer.init()`. Use it directly only when building a custom tracing pipeline.
Last updated on