Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / createTracer

Function: createTracer()

ts
function createTracer(opts): GraphorinTracer;

Defined in: packages/observability/src/tracer/tracer.ts:118

Build a GraphorinTracer from the supplied options. Every exporter passed in must already be wrapped via withValidation(...) OR validation must be set to a concrete options object so the tracer can auto-wrap on your behalf. Registering a raw exporter while validation: 'off' triggers an UnvalidatedExporterError at startup.

Parameters

ParameterType
optsTracerOptions

Returns

GraphorinTracer

Stable