JudgmentSpanExporter
Span exporter that sends traces to the Judgment platform via OTLP HTTP. Wraps the OpenTelemetry OTLP trace exporter with Judgment-specific authentication headers.
Span exporter that sends traces to the Judgment platform via OTLP HTTP.
Wraps the OpenTelemetry OTLP trace exporter with Judgment-specific authentication headers.
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>
JudgmentTracerProvider
Global singleton that manages tracer registration and context propagation. Acts as a proxy TracerProvider that delegates to the currently active tracer's underlying OpenTelemetry provider.
NoOpSpanExporter
A no-op span exporter that discards all spans. Used when monitoring is disabled or credentials are missing.
Last updated on