@loglayer/plugin-opentelemetry
Version:
OpenTelemetry plugin for LogLayer that adds trace context to logs.
25 lines (24 loc) • 771 B
text/typescript
import { LogLayerPlugin, LogLayerPluginParams } from "@loglayer/plugin";
//#region src/index.d.ts
interface OpenTelemetryPluginParams extends LogLayerPluginParams {
/**
* If specified, all trace fields will be nested under this key
*/
traceFieldName?: string;
/**
* Field name for the trace ID. Defaults to 'trace_id'
*/
traceIdFieldName?: string;
/**
* Field name for the span ID. Defaults to 'span_id'
*/
spanIdFieldName?: string;
/**
* Field name for the trace flags. Defaults to 'trace_flags'
*/
traceFlagsFieldName?: string;
}
declare function openTelemetryPlugin(config?: OpenTelemetryPluginParams): LogLayerPlugin;
//#endregion
export { OpenTelemetryPluginParams, openTelemetryPlugin };
//# sourceMappingURL=index.d.mts.map