@sentry/opentelemetry 10.59.0 → 10.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,17 @@
1
1
  import type { Context } from '@opentelemetry/api';
2
2
  import type { ReadableSpan, Span, SpanProcessor as SpanProcessorInterface } from '@opentelemetry/sdk-trace-base';
3
+ import type { Client } from '@sentry/core';
3
4
  /**
4
5
  * Converts OpenTelemetry Spans to Sentry Spans and sends them to Sentry via
5
6
  * the Sentry SDK.
6
7
  */
7
8
  export declare class SentrySpanProcessor implements SpanProcessorInterface {
8
9
  private _exporter;
10
+ private _client;
11
+ private _unsubscribePreprocessSpan;
9
12
  constructor(options?: {
10
13
  timeout?: number;
14
+ client?: Client;
11
15
  });
12
16
  /**
13
17
  * @inheritDoc
@@ -1 +1 @@
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;AAejH;;;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;IAoCxD,kBAAkB;IACX,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,IAAI;CAY9C"}
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,EAAoC,MAAM,cAAc,CAAC;AAmB7E;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,sBAAsB;IAChE,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,0BAA0B,CAAuC;gBAEtD,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAclE;;OAEG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI;IAmCxD,kBAAkB;IACX,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,IAAI;CAW9C"}
@@ -1,13 +1,17 @@
1
1
  import { Context } from '@opentelemetry/api';
2
2
  import { ReadableSpan, Span, SpanProcessor as SpanProcessorInterface } from '@opentelemetry/sdk-trace-base';
3
+ import { Client } from '@sentry/core';
3
4
  /**
4
5
  * Converts OpenTelemetry Spans to Sentry Spans and sends them to Sentry via
5
6
  * the Sentry SDK.
6
7
  */
7
8
  export declare class SentrySpanProcessor implements SpanProcessorInterface {
8
9
  private _exporter;
10
+ private _client;
11
+ private _unsubscribePreprocessSpan;
9
12
  constructor(options?: {
10
13
  timeout?: number;
14
+ client?: Client;
11
15
  });
12
16
  /**
13
17
  * @inheritDoc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/opentelemetry",
3
- "version": "10.59.0",
3
+ "version": "10.60.0",
4
4
  "description": "Official Sentry utilities for OpenTelemetry",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/opentelemetry",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@sentry/conventions": "^0.12.0",
69
- "@sentry/core": "10.59.0"
69
+ "@sentry/core": "10.60.0"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@opentelemetry/api": "^1.9.0",