Skip to main content

Function: getTracer()

getTracer(): Tracer

Defined in: src/observability/tracer.ts:62

Gets the Chive tracer instance.

Returns

Tracer

Tracer instance for creating spans

Remarks

Returns a tracer with the Chive service name. Use this for manual span creation.

Example

const tracer = getTracer();
const span = tracer.startSpan('myOperation');
try {
// ... do work ...
} finally {
span.end();
}

Since

0.1.0