Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/observability / / JSONLExporter

Interface: JSONLExporter

Defined in: packages/observability/src/exporters/jsonl.ts:64

Stable

A JSONL exporter, plus an introspection seam for the bounded handle pool.

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
[VALIDATED_EXPORTER_BRAND]?readonlytrueInternal Branded-marker stub. Set by withValidation(...) to signal that the exporter has been wrapped. Direct exporters omit the brand and the tracer fails fast at startup.TraceExporter.[VALIDATED_EXPORTER_BRAND]packages/observability/src/exporters/types.ts:84
idreadonlystring-TraceExporter.idpackages/observability/src/exporters/types.ts:70

Methods

export()

ts
export(record): Promise<void>;

Defined in: packages/observability/src/exporters/types.ts:72

Forward a finished span record. Implementations should be cheap.

Parameters

ParameterType
recordSpanRecord

Returns

Promise&lt;void&gt;

Inherited from

TraceExporter.export


flush()

ts
flush(): Promise<void>;

Defined in: packages/observability/src/exporters/types.ts:74

Flush any buffered spans. Called on tracer.shutdown().

Returns

Promise&lt;void&gt;

Inherited from

TraceExporter.flush


openHandleCount()

ts
openHandleCount(): number;

Defined in: packages/observability/src/exporters/jsonl.ts:66

Number of file handles currently open in the pool.

Returns

number


shutdown()

ts
shutdown(): Promise<void>;

Defined in: packages/observability/src/exporters/types.ts:76

Close any underlying resources. Idempotent.

Returns

Promise&lt;void&gt;

Inherited from

TraceExporter.shutdown