Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / JSONLExporterOptions

Interface: JSONLExporterOptions

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

Configuration shape for createJSONLExporter.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
id?readonlystringIdentifier reported via exporter.id. Defaults to 'jsonl'.packages/observability/src/exporters/jsonl.ts:33
now?readonlyDateProviderInternal Override the date used when picking the rotation directory. Defaults to () => new Date().packages/observability/src/exporters/jsonl.ts:49
pathreadonlystringRoot directory for the trace files. Created if missing.packages/observability/src/exporters/jsonl.ts:35
resolveFilePath?readonly(record, root) => stringResolver that picks the file path for a given span record. Defaults to <rootPath>/<YYYY-MM>/<sessionId>.jsonl keyed off the graphorin.session.id attribute (or unsessioned.jsonl when absent).packages/observability/src/exporters/jsonl.ts:42