@totalsoft/opentracing
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

correlation

This package provides core opentracing functionality.

Installation

npm i @totalsoft/opentracing

or

yarn add @totalsoft/opentracing

Span Manager

Allows propagating an opentracing span across async/await calls.

async function inner() {
  // Access the active span in scope
  const activeSpan = spanManager.getActiveSpan()
}

// Create a scope where the span will be available
spanManager.useSpanManager(rootSpan, async () => {
  await inner()
})

/@totalsoft/opentracing/

    Package Sidebar

    Install

    npm i @totalsoft/opentracing

    Weekly Downloads

    45

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    41 kB

    Total Files

    15

    Last publish

    Collaborators

    • osstotalsoft