@totalsoft/pino-opentelemetry
v3.0.0
Published
Correlation id mixin for pino
Downloads
324
Readme
pino-opentelemetry
This package can be used to write the log event on the active opentelemetry tracing span.
Installation
npm i @totalsoft/pino-opentelemetry
or
yarn add @totalsoft/pino-opentelemetry
Usage
import { openTelemetryTracingTransport } from '@totalsoft/pino-opentelemetry'
import { pino } from 'pino'
const destination = openTelemetryTracingTransport()
const logger = pino({}, destination)