@opentelemetry/otlp-transformer
Advanced tools
Comparing version 0.35.0 to 0.35.1
@@ -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 @@ }; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252086
2649
+ Added@opentelemetry/core@1.9.1(transitive)
+ Added@opentelemetry/resources@1.9.1(transitive)
+ Added@opentelemetry/sdk-metrics@1.9.1(transitive)
+ Added@opentelemetry/sdk-trace-base@1.9.1(transitive)
+ Added@opentelemetry/semantic-conventions@1.9.1(transitive)
- Removed@opentelemetry/core@1.9.0(transitive)
- Removed@opentelemetry/resources@1.9.0(transitive)
- Removed@opentelemetry/sdk-metrics@1.9.0(transitive)
- Removed@opentelemetry/sdk-trace-base@1.9.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.9.0(transitive)
Updated@opentelemetry/core@1.9.1