Skip to content

Latest commit

 

History

History

pino-opentracing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)