opentelemetry-span-transformations
TypeScript icon, indicating that this package has built-in type declarations

0.40.0 • Public • Published

span-transformations

Usage

Utility functions to convert between different span types. Currently only supports converting spans from Jaeger(proto, like the one currently received from jaeger internal json api) to opentelemetry ReadableSpan.

import { convertJaegerSpanToOtelReadableSpan } from 'opentelemetry-span-transformations';
const otelSpan = convertJaegerSpanToOtelReadableSpan(jaegerSpan);

ReadableSpans fields that we do not support for now(not taking them from jaeger span):

SpanContext.isRemote
SpanContext.traceState
Links
Events
Status.message

Readme

Keywords

none

Package Sidebar

Install

npm i opentelemetry-span-transformations

Weekly Downloads

2

Version

0.40.0

License

Apache-2.0

Unpacked Size

32.4 kB

Total Files

16

Last publish

Collaborators

  • aspecto-release-bot