JudgmentSpanExporter
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): void
Parameters
PropType
spansReadableSpan[]
The spans to export.
Type
ReadableSpan[]resultCallback(result: ExportResult) => void
Callback invoked with the export result.
Type
(result: ExportResult) => voidReturns
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>