Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / withValidation

Function: withValidation()

ts
function withValidation<E>(exporter, opts?): TraceExporter;

Defined in: packages/observability/src/exporters/with-validation.ts:43

Wrap an exporter so every span flows through a RedactionValidator before reaching the sink. Exporters that are not wrapped are rejected by the tracer at startup.

Type Parameters

Type Parameter
E extends TraceExporter

Parameters

ParameterType
exporterE
optsWithValidationOptions

Returns

TraceExporter

Stable