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

0.41.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

20

Version

0.41.0

License

Apache-2.0

Unpacked Size

30.8 kB

Total Files

15

Last publish

Collaborators

  • aspecto-release-bot