You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@sentry/opentelemetry

Package Overview
Dependencies
Maintainers
1
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/opentelemetry - npm Package Compare versions

Comparing version
10.39.0-alpha.0
to
10.39.0
+1
-1
build/esm/package.json

@@ -1,1 +0,1 @@

{"type":"module","version":"10.39.0-alpha.0","sideEffects":false}
{"type":"module","version":"10.39.0","sideEffects":false}
import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import { SpanOrigin, TransactionEvent, TransactionSource } from '@sentry/core';
export interface ISentrySpanExporter {
export(span: ReadableSpan): void;
flush(): void;
clear(): void;
}
import { TransactionEvent } from '@sentry/core';
/**
* A Sentry-specific exporter that converts OpenTelemetry Spans to Sentry Spans & Transactions.
*/
export declare class SentrySpanExporter implements ISentrySpanExporter {
export declare class SentrySpanExporter {
private _finishedSpanBuckets;

@@ -57,12 +52,2 @@ private _finishedSpanBucketSize;

export declare function createTransactionForOtelSpan(span: ReadableSpan): TransactionEvent;
/**
* Get span data from the OTEL span
*/
export declare function getSpanData(span: ReadableSpan): {
data: Record<string, unknown>;
op?: string;
description: string;
source?: TransactionSource;
origin?: SpanOrigin;
};
//# sourceMappingURL=spanExporter.d.ts.map
import { Context } from '@opentelemetry/api';
import { ReadableSpan, Span, SpanProcessor as SpanProcessorInterface } from '@opentelemetry/sdk-trace-base';
import { Client } from '@sentry/core';
/**

@@ -10,6 +9,4 @@ * Converts OpenTelemetry Spans to Sentry Spans and sends them to Sentry via

private _exporter;
private _client;
constructor(options?: {
timeout?: number;
client?: Client;
});

@@ -16,0 +13,0 @@ /**

import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import type { SpanOrigin, TransactionEvent, TransactionSource } from '@sentry/core';
export interface ISentrySpanExporter {
export(span: ReadableSpan): void;
flush(): void;
clear(): void;
}
import type { TransactionEvent } from '@sentry/core';
/**
* A Sentry-specific exporter that converts OpenTelemetry Spans to Sentry Spans & Transactions.
*/
export declare class SentrySpanExporter implements ISentrySpanExporter {
export declare class SentrySpanExporter {
private _finishedSpanBuckets;

@@ -57,12 +52,2 @@ private _finishedSpanBucketSize;

export declare function createTransactionForOtelSpan(span: ReadableSpan): TransactionEvent;
/**
* Get span data from the OTEL span
*/
export declare function getSpanData(span: ReadableSpan): {
data: Record<string, unknown>;
op?: string;
description: string;
source?: TransactionSource;
origin?: SpanOrigin;
};
//# sourceMappingURL=spanExporter.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"spanExporter.d.ts","sourceRoot":"","sources":["../../src/spanExporter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAGV,UAAU,EAEV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAqCtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IACjC,KAAK,IAAI,IAAI,CAAC;IACd,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,kBAAmB,YAAW,mBAAmB;IAiB5D,OAAO,CAAC,oBAAoB,CAAqC;IACjE,OAAO,CAAC,uBAAuB,CAAS;IACxC,OAAO,CAAC,mBAAmB,CAA4C;IACvE,OAAO,CAAC,wBAAwB,CAAS;IAGzC,OAAO,CAAC,UAAU,CAAsB;IAExC,OAAO,CAAC,eAAe,CAA8B;gBAElC,OAAO,CAAC,EAAE;QAC3B,4IAA4I;QAC5I,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IASD;;;OAGG;IACI,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAoCvC;;;;OAIG;IACI,KAAK,IAAI,IAAI;IA4BpB;;;OAGG;IACI,KAAK,IAAI,IAAI;IAMpB;;;;;;;;OAQG;IACH,OAAO,CAA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CAAC,mBAAmB;IAU3B,4FAA4F;IAC5F,OAAO,CAAC,uCAAuC;IAI/C,wDAAwD;IACxD,OAAO,CAAC,sBAAsB;CAK/B;AAYD,+BAA+B;AAC/B,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,YAAY,GAAG,gBAAgB,CAoEjF"}
import type { Context } from '@opentelemetry/api';
import type { ReadableSpan, Span, SpanProcessor as SpanProcessorInterface } from '@opentelemetry/sdk-trace-base';
import type { Client } from '@sentry/core';
/**

@@ -10,6 +9,4 @@ * Converts OpenTelemetry Spans to Sentry Spans and sends them to Sentry via

private _exporter;
private _client;
constructor(options?: {
timeout?: number;
client?: Client;
});

@@ -16,0 +13,0 @@ /**

@@ -1,1 +0,1 @@

{"version":3,"file":"spanProcessor.d.ts","sourceRoot":"","sources":["../../src/spanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACjH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAqD3C;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,sBAAsB;IAChE,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,OAAO,CAAqB;gBAEjB,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAUlE;;OAEG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI;IAIxD,kBAAkB;IACX,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,IAAI;CAO9C"}
{"version":3,"file":"spanProcessor.d.ts","sourceRoot":"","sources":["../../src/spanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AA0DjH;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,sBAAsB;IAChE,OAAO,CAAC,SAAS,CAAqB;gBAEnB,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAKjD;;OAEG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI;IAIxD,kBAAkB;IACX,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,IAAI;CAK9C"}
{
"name": "@sentry/opentelemetry",
"version": "10.39.0-alpha.0",
"version": "10.39.0",
"description": "Official Sentry utilities for OpenTelemetry",

@@ -42,3 +42,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "10.39.0-alpha.0"
"@sentry/core": "10.39.0"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import { Client, Span } from '@sentry/core';
import { ISentrySpanExporter } from './spanExporter';
type StreamingSpanExporterOptions = {
flushInterval?: number;
maxSpanLimit?: number;
};
/**
* A Sentry-specific exporter that buffers span JSON objects and streams them to Sentry
* in Span v2 envelopes. This exporter works with pre-serialized span JSON rather than
* OTel span instances to avoid mutating already-ended spans.
*/
export declare class StreamingSpanExporter implements ISentrySpanExporter {
private _buffer;
private _client;
constructor(client: Client, options?: StreamingSpanExporterOptions);
/**
* Enqueue a span JSON into the buffer
*/
export(span: ReadableSpan & Span): void;
/**
* Try to flush any pending spans immediately.
*/
flush(): void;
/**
* Clear the exporter.
* This is called when the span processor is shut down.
*/
clear(): void;
}
export {};
//# sourceMappingURL=streamingSpanExporter.d.ts.map
import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import type { Client, Span } from '@sentry/core';
import { type ISentrySpanExporter } from './spanExporter';
type StreamingSpanExporterOptions = {
flushInterval?: number;
maxSpanLimit?: number;
};
/**
* A Sentry-specific exporter that buffers span JSON objects and streams them to Sentry
* in Span v2 envelopes. This exporter works with pre-serialized span JSON rather than
* OTel span instances to avoid mutating already-ended spans.
*/
export declare class StreamingSpanExporter implements ISentrySpanExporter {
private _buffer;
private _client;
constructor(client: Client, options?: StreamingSpanExporterOptions);
/**
* Enqueue a span JSON into the buffer
*/
export(span: ReadableSpan & Span): void;
/**
* Try to flush any pending spans immediately.
*/
flush(): void;
/**
* Clear the exporter.
* This is called when the span processor is shut down.
*/
clear(): void;
}
export {};
//# sourceMappingURL=streamingSpanExporter.d.ts.map
{"version":3,"file":"streamingSpanExporter.d.ts","sourceRoot":"","sources":["../../src/streamingSpanExporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAWjD,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,KAAK,4BAA4B,GAAG;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,mBAAmB;IAC/D,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,OAAO,CAAS;gBAEL,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B;IA8BzE;;OAEG;IACI,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI;IAI9C;;OAEG;IACI,KAAK,IAAI,IAAI;IAIpB;;;OAGG;IACI,KAAK,IAAI,IAAI;CAGrB"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display