Socket
Socket
Sign inDemoInstall

@opentelemetry/otlp-transformer

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/otlp-transformer - npm Package Compare versions

Comparing version 0.35.0 to 0.35.1

4

build/esm/trace/internal.js

@@ -5,2 +5,3 @@ import { hrTimeToNanoseconds } from '@opentelemetry/core';

export function sdkSpanToOtlpSpan(span, useHex) {
var _a;
var ctx = span.spanContext();

@@ -17,2 +18,3 @@ var status = span.status;

parentSpanId: parentSpanId,
traceState: (_a = ctx.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
name: span.name,

@@ -37,2 +39,3 @@ // Span kind is offset by 1 because the API does not define a value for unset

export function toOtlpLink(link, useHex) {
var _a;
return {

@@ -46,2 +49,3 @@ attributes: link.attributes ? toAttributes(link.attributes) : [],

: core.hexToBase64(link.context.traceId),
traceState: (_a = link.context.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
droppedAttributesCount: 0,

@@ -48,0 +52,0 @@ };

@@ -5,2 +5,3 @@ import { hrTimeToNanoseconds } from '@opentelemetry/core';

export function sdkSpanToOtlpSpan(span, useHex) {
var _a;
const ctx = span.spanContext();

@@ -17,2 +18,3 @@ const status = span.status;

parentSpanId: parentSpanId,
traceState: (_a = ctx.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
name: span.name,

@@ -37,2 +39,3 @@ // Span kind is offset by 1 because the API does not define a value for unset

export function toOtlpLink(link, useHex) {
var _a;
return {

@@ -46,2 +49,3 @@ attributes: link.attributes ? toAttributes(link.attributes) : [],

: core.hexToBase64(link.context.traceId),
traceState: (_a = link.context.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
droppedAttributesCount: 0,

@@ -48,0 +52,0 @@ };

@@ -8,2 +8,3 @@ "use strict";

function sdkSpanToOtlpSpan(span, useHex) {
var _a;
const ctx = span.spanContext();

@@ -20,2 +21,3 @@ const status = span.status;

parentSpanId: parentSpanId,
traceState: (_a = ctx.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
name: span.name,

@@ -41,2 +43,3 @@ // Span kind is offset by 1 because the API does not define a value for unset

function toOtlpLink(link, useHex) {
var _a;
return {

@@ -50,2 +53,3 @@ attributes: link.attributes ? (0, internal_1.toAttributes)(link.attributes) : [],

: core.hexToBase64(link.context.traceId),
traceState: (_a = link.context.traceState) === null || _a === void 0 ? void 0 : _a.serialize(),
droppedAttributesCount: 0,

@@ -52,0 +56,0 @@ };

16

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.35.0",
"version": "0.35.1",
"description": "Transform OpenTelemetry SDK data into OTLP",

@@ -70,6 +70,6 @@ "module": "build/esm/index.js",

"karma-webpack": "4.0.2",
"mkdirp": "1.0.4",
"mkdirp": "2.1.3",
"mocha": "10.0.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"rimraf": "4.1.2",
"ts-loader": "8.4.0",

@@ -81,10 +81,10 @@ "ts-mocha": "10.0.0",

"dependencies": {
"@opentelemetry/core": "1.9.0",
"@opentelemetry/resources": "1.9.0",
"@opentelemetry/sdk-metrics": "1.9.0",
"@opentelemetry/sdk-trace-base": "1.9.0"
"@opentelemetry/core": "1.9.1",
"@opentelemetry/resources": "1.9.1",
"@opentelemetry/sdk-metrics": "1.9.1",
"@opentelemetry/sdk-trace-base": "1.9.1"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-transformer",
"sideEffects": false,
"gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121"
"gitHead": "279458e7ddf16f7ddca5fe60c78672e05fafce66"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc