1.1.0 • Published 2 years ago

@totalsoft/pino-opentracing v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

pino-opentracing

This package can be used to write the log event on the active opentracing span.

Installation

npm i @totalsoft/pino-opentracing

or

yarn add @totalsoft/pino-opentracing

Usage

import { opentracingTransport } from '@totalsoft/pino-opentracing'
import { pino } from 'pino'

const destination = opentracingTransport()
const logger = pino({}, destination)