@sentry/node 10.66.0 → 10.67.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.
- package/build/cjs/index.js +20 -19
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/utils.js +4 -1
- package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/patches.js +8 -9
- package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js +5 -118
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +33 -23
- package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +0 -16
- package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
- package/build/cjs/sdk/index.js +11 -0
- package/build/cjs/sdk/index.js.map +1 -1
- package/build/cjs/sdk/initOtel.js +26 -2
- package/build/cjs/sdk/initOtel.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/integrations/tracing/koa/vendored/utils.js +5 -2
- package/build/esm/integrations/tracing/koa/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/patches.js +3 -4
- package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/utils.js +6 -118
- package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +35 -25
- package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/vendored/utils.js +1 -16
- package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/index.js +11 -1
- package/build/esm/sdk/index.js.map +1 -1
- package/build/esm/sdk/initOtel.js +27 -3
- package/build/esm/sdk/initOtel.js.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +6 -15
- package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -1
- package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +1 -3
- package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +1 -1
- package/build/types/sdk/index.d.ts +18 -0
- package/build/types/sdk/index.d.ts.map +1 -1
- package/build/types/sdk/initOtel.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +1 -1
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +6 -15
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -1
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +1 -3
- package/build/types-ts3.8/sdk/index.d.ts +18 -0
- package/package.json +5 -5
- package/build/cjs/integrations/tracing/mongo/vendored/internal-types.js +0 -14
- package/build/cjs/integrations/tracing/mongo/vendored/internal-types.js.map +0 -1
- package/build/cjs/integrations/tracing/mongo/vendored/semconv.js +0 -10
- package/build/cjs/integrations/tracing/mongo/vendored/semconv.js.map +0 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js +0 -6
- package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js.map +0 -1
- package/build/esm/integrations/tracing/mongo/vendored/internal-types.js +0 -12
- package/build/esm/integrations/tracing/mongo/vendored/internal-types.js.map +0 -1
- package/build/esm/integrations/tracing/mongo/vendored/semconv.js +0 -6
- package/build/esm/integrations/tracing/mongo/vendored/semconv.js.map +0 -1
- package/build/esm/integrations/tracing/mongoose/vendored/semconv.js +0 -4
- package/build/esm/integrations/tracing/mongoose/vendored/semconv.js.map +0 -1
- package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts +0 -17
- package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts.map +0 -1
- package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -9
- package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/semconv.d.ts +0 -17
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -9
package/build/types/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { langChainIntegration } from './integrations/tracing/langchain';
|
|
|
31
31
|
export { langGraphIntegration } from './integrations/tracing/langgraph';
|
|
32
32
|
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, growthbookIntegration, } from './integrations/featureFlagShims';
|
|
33
33
|
export { firebaseIntegration } from './integrations/tracing/firebase';
|
|
34
|
-
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, } from './sdk';
|
|
34
|
+
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, applyDiagnosticsChannelInjectionIntegrations, } from './sdk';
|
|
35
35
|
export { experimentalUseDiagnosticsChannelInjection, diagnosticsChannelInjectionIntegrations, } from './sdk/experimentalUseDiagnosticsChannelInjection';
|
|
36
36
|
export { isDiagnosticsChannelInjectionEnabled } from './sdk/diagnosticsChannelInjection';
|
|
37
37
|
export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qB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EAC9B,kBAAkB,EAClB,eAAe,EACf,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,0BAA0B,EAC1B,gBAAgB,EAChB,qCAAqC,GACtC,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/koa/vendored/utils.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,eAAO,MAAM,qBAAqB,GAChC,SAAS,UAAU,EACnB,OAAO,aAAa,EACpB,UAAU,OAAO,EACjB,YAAY,MAAM,GAAG,MAAM,KAC1B;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/koa/vendored/utils.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,eAAO,MAAM,qBAAqB,GAChC,SAAS,UAAU,EACnB,OAAO,aAAa,EACpB,UAAU,OAAO,EACjB,YAAY,MAAM,GAAG,MAAM,KAC1B;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CAqBd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,YAAY,EAAE,SAAS,wBAAwB,KAAG,OAEtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patches.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/patches.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"patches.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/patches.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAU1B,qEAAqE;AACrE,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,IACvE,UAAU,oBAAoB,CAAC,OAAO,aAAa,CAAC,MAExD,MAAM,OAAO,EACb,QAAQ,qBAAqB,EAC7B,IAAI,MAAM,EACV,KAAK,OAAO,EAAE,EACd,SAAS,OAAO,GAAG,QAAQ,EAC3B,WAAW,QAAQ,SAsBxB;AAED,kDAAkD;AAClD,wBAAgB,iBAAiB,KACvB,UAAU,oBAAoB,CAAC,SAAS,CAAC,MAE7C,MAAM,OAAO,EACb,QAAQ,qBAAqB,EAC7B,IAAI,MAAM,EACV,KAAK,oBAAoB,EACzB,SAAS,OAAO,GAAG,QAAQ,EAC3B,WAAW,QAAQ,SAwBxB;AAED,wEAAwE;AACxE,wBAAgB,yBAAyB,KAC/B,UAAU,YAAY,CAAC,iBAAiB,CAAC,MAE7C,MAAM,GAAG,EACT,IAAI,gBAAgB,EACpB,KAAK,GAAG,EACR,SAAS,SAAS,GAAG,OAAO,EAC5B,UAAU,GAAG,SAkBlB;AAED,wEAAwE;AACxE,wBAAgB,wBAAwB,KAC9B,UAAU,YAAY,CAAC,gBAAgB,CAAC,MACP,MAAM,GAAG,EAAE,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,SAyBxG;AAED,+CAA+C;AAC/C,wBAAgB,cAAc,KACpB,UAAU,oBAAoB,CAAC,OAAO,CAAC,MAE3C,MAAM,OAAO,EACb,QAAQ,qBAAqB,EAC7B,IAAI,MAAM,EACV,KAAK,oBAAoB,EACzB,aAAa,WAAW,EACxB,SAAS,OAAO,GAAG,QAAQ,EAC3B,WAAW,QAAQ,SAuBxB;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,KACtB,UAAU,oBAAoB,CAAC,SAAS,CAAC,MAE7C,MAAM,OAAO,EACb,QAAQ,qBAAqB,EAC7B,IAAI,MAAM,EACV,aAAa,WAAW,EACxB,WAAW,MAAM,EACjB,SAAS,OAAO,GAAG,QAAQ,EAC3B,WAAW,QAAQ,SAuBxB;AAGD,wBAAgB,2BAA2B,KACjC,UAAU,gBAAgB,CAAC,UAAU,CAAC,MACZ,MAAM,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,KAAK,IAAI,SASjG"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import type { Span, SpanAttributes } from '@sentry/core';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export declare function
|
|
8
|
-
/**
|
|
9
|
-
* Determine a span's attributes by fetching related metadata from the v4 connection context.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getV4SpanAttributes(connectionCtx: any, ns: MongodbNamespace, command?: any, operation?: string): SpanAttributes;
|
|
12
|
-
/**
|
|
13
|
-
* Determine a span's attributes by fetching related metadata from the v3 topology.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getV3SpanAttributes(ns: string, topology: MongoInternalTopology, command?: MongoInternalCommand, operation?: string | undefined): SpanAttributes;
|
|
16
|
-
export declare function startMongoSpan(attributes: SpanAttributes): Span;
|
|
2
|
+
import { getV3CommandOperation, startMongoSpan } from '@sentry/server-utils';
|
|
3
|
+
export { getV3CommandOperation, startMongoSpan };
|
|
4
|
+
/** Determine a span's attributes from the v4 connection context (OTel origin). */
|
|
5
|
+
export declare function getV4SpanAttributes(connectionCtx: any, ns: any, command?: any, operation?: string): SpanAttributes;
|
|
6
|
+
/** Determine a span's attributes from the v3 topology (OTel origin). */
|
|
7
|
+
export declare function getV3SpanAttributes(ns: string, topology: any, command?: any, operation?: string): SpanAttributes;
|
|
17
8
|
/**
|
|
18
9
|
* Wraps the result handler so it ends the span (with error status on failure) and runs the
|
|
19
10
|
* original callback re-activated under the parent span — mongodb loses the async context when
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/utils.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EACL,qBAAqB,EAGrB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,CAAC;AAEjD,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,CAElH;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,CAEhH;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAkBlF;AAID,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD"}
|
|
@@ -13,7 +13,6 @@ export declare class MongooseInstrumentation extends InstrumentationBase<Instrum
|
|
|
13
13
|
private patchModelStatic;
|
|
14
14
|
private patchModelAggregate;
|
|
15
15
|
private patchAndCaptureSpanContext;
|
|
16
|
-
private _startSpan;
|
|
17
16
|
private _handleResponse;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=mongoose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/mongoose.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,+BAA+B,EAErC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/mongoose.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,+BAA+B,EAErC,MAAM,gCAAgC,CAAC;AAuExC,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAqC,CAAC;AAI/E,eAAO,MAAM,qBAAqB,EAAE,OAAO,MAAuC,CAAC;AAEnF,qBAAa,uBAAwB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBACzE,MAAM,GAAE,qBAA0B;IAI9C,SAAS,CAAC,IAAI,IAAI,+BAA+B;IAajD,OAAO,CAAC,KAAK;IAqCb,OAAO,CAAC,OAAO;IA+Bf,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,2BAA2B;IA+BnC,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,eAAe;CAaxB"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { Span
|
|
2
|
-
import type { Collection } from './mongoose-types';
|
|
3
|
-
export declare function getAttributesFromCollection(collection: Collection): SpanAttributes;
|
|
1
|
+
import type { Span } from '@sentry/core';
|
|
4
2
|
export declare function handlePromiseResponse(execResponse: any, span: Span): any;
|
|
5
3
|
export declare function handleCallbackResponse(callback: Function, exec: Function, originalThis: any, span: Span, args: IArguments): any;
|
|
6
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/utils.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAWzC,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,GAAG,CAYxE;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,GAAG,EACjB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,UAAU,OAmBjB"}
|
|
@@ -7,6 +7,24 @@ import type { NodeOptions } from '../types';
|
|
|
7
7
|
export declare function getDefaultIntegrationsWithoutPerformance(): Integration[];
|
|
8
8
|
/** Get the default integrations for the Node SDK. */
|
|
9
9
|
export declare function getDefaultIntegrations(options: Options): Integration[];
|
|
10
|
+
/**
|
|
11
|
+
* When the app opted into diagnostics-channel injection (via
|
|
12
|
+
* `experimentalUseDiagnosticsChannelInjection()`) AND span recording is enabled, drop the OTel
|
|
13
|
+
* integrations that have a channel-based replacement and append the FULL channel-integration set,
|
|
14
|
+
* so the two never both instrument the same library. Otherwise returns `integrations` unchanged.
|
|
15
|
+
*
|
|
16
|
+
* `_init` applies the same swap to `defaultIntegrations`, but SDKs that seed their integrations
|
|
17
|
+
* through the user `integrations` option instead (e.g. the `@sentry/aws-serverless` Lambda layer
|
|
18
|
+
* entry) never hit that path, so they call this directly from their own `getDefaultIntegrations`.
|
|
19
|
+
*
|
|
20
|
+
* Note the asymmetry: appended channel integrations are not limited to ones whose OTel counterpart
|
|
21
|
+
* was in `integrations`. For `@sentry/node` that makes no difference (the incoming list carries the
|
|
22
|
+
* whole OTel performance set), but a caller with a narrower list (e.g. `@sentry/aws-serverless`)
|
|
23
|
+
* gains channel coverage for libraries it never shipped OTel integrations for. Channel integrations
|
|
24
|
+
* produce nothing but spans, so this is gated on span recording. Exported so SDKs that build their
|
|
25
|
+
* own default-integration set can apply the same logic instead of duplicating it.
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyDiagnosticsChannelInjectionIntegrations(integrations: Integration[], options: Options): Integration[];
|
|
10
28
|
/**
|
|
11
29
|
* Initialize Sentry for Node.
|
|
12
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAOxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAsED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAE5G"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAOxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,4CAA4C,CAC1D,YAAY,EAAE,WAAW,EAAE,EAC3B,OAAO,EAAE,OAAO,GACf,WAAW,EAAE,CASf;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAsED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAE5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,uBAAuB,EAG5B,KAAK,2BAA2B,EAMjC,MAAM,uBAAuB,CAAC;AA8D/B,UAAU,8BAA8B;IACtC,8DAA8D;IAC9D,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,8BAAmC,GAAG,IAAI,CAQxG;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAiB3E;AAgBD,+BAA+B;AAC/B,wBAAgB,SAAS,CACvB,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,8BAAmC,GAC3C,CAAC,2BAA2B,GAAG,SAAS,EAAE,uBAAuB,GAAG,SAAS,CAAC,CAkChF;AAqDD,+BAA+B;AAC/B,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAiBtG"}
|
|
@@ -31,7 +31,7 @@ export { langChainIntegration } from './integrations/tracing/langchain';
|
|
|
31
31
|
export { langGraphIntegration } from './integrations/tracing/langgraph';
|
|
32
32
|
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, growthbookIntegration, } from './integrations/featureFlagShims';
|
|
33
33
|
export { firebaseIntegration } from './integrations/tracing/firebase';
|
|
34
|
-
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, } from './sdk';
|
|
34
|
+
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, applyDiagnosticsChannelInjectionIntegrations, } from './sdk';
|
|
35
35
|
export { experimentalUseDiagnosticsChannelInjection, diagnosticsChannelInjectionIntegrations, } from './sdk/experimentalUseDiagnosticsChannelInjection';
|
|
36
36
|
export { isDiagnosticsChannelInjectionEnabled } from './sdk/diagnosticsChannelInjection';
|
|
37
37
|
export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { Span, SpanAttributes } from '@sentry/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export declare function
|
|
8
|
-
/**
|
|
9
|
-
* Determine a span's attributes by fetching related metadata from the v4 connection context.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getV4SpanAttributes(connectionCtx: any, ns: MongodbNamespace, command?: any, operation?: string): SpanAttributes;
|
|
12
|
-
/**
|
|
13
|
-
* Determine a span's attributes by fetching related metadata from the v3 topology.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getV3SpanAttributes(ns: string, topology: MongoInternalTopology, command?: MongoInternalCommand, operation?: string | undefined): SpanAttributes;
|
|
16
|
-
export declare function startMongoSpan(attributes: SpanAttributes): Span;
|
|
2
|
+
import { getV3CommandOperation, startMongoSpan } from '@sentry/server-utils';
|
|
3
|
+
export { getV3CommandOperation, startMongoSpan };
|
|
4
|
+
/** Determine a span's attributes from the v4 connection context (OTel origin). */
|
|
5
|
+
export declare function getV4SpanAttributes(connectionCtx: any, ns: any, command?: any, operation?: string): SpanAttributes;
|
|
6
|
+
/** Determine a span's attributes from the v3 topology (OTel origin). */
|
|
7
|
+
export declare function getV3SpanAttributes(ns: string, topology: any, command?: any, operation?: string): SpanAttributes;
|
|
17
8
|
/**
|
|
18
9
|
* Wraps the result handler so it ends the span (with error status on failure) and runs the
|
|
19
10
|
* original callback re-activated under the parent span — mongodb loses the async context when
|
|
@@ -13,7 +13,6 @@ export declare class MongooseInstrumentation extends InstrumentationBase<Instrum
|
|
|
13
13
|
private patchModelStatic;
|
|
14
14
|
private patchModelAggregate;
|
|
15
15
|
private patchAndCaptureSpanContext;
|
|
16
|
-
private _startSpan;
|
|
17
16
|
private _handleResponse;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=mongoose.d.ts.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Span
|
|
2
|
-
import { Collection } from './mongoose-types';
|
|
3
|
-
export declare function getAttributesFromCollection(collection: Collection): SpanAttributes;
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
4
2
|
export declare function handlePromiseResponse(execResponse: any, span: Span): any;
|
|
5
3
|
export declare function handleCallbackResponse(callback: Function, exec: Function, originalThis: any, span: Span, args: IArguments): any;
|
|
6
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -7,6 +7,24 @@ import { NodeOptions } from '../types';
|
|
|
7
7
|
export declare function getDefaultIntegrationsWithoutPerformance(): Integration[];
|
|
8
8
|
/** Get the default integrations for the Node SDK. */
|
|
9
9
|
export declare function getDefaultIntegrations(options: Options): Integration[];
|
|
10
|
+
/**
|
|
11
|
+
* When the app opted into diagnostics-channel injection (via
|
|
12
|
+
* `experimentalUseDiagnosticsChannelInjection()`) AND span recording is enabled, drop the OTel
|
|
13
|
+
* integrations that have a channel-based replacement and append the FULL channel-integration set,
|
|
14
|
+
* so the two never both instrument the same library. Otherwise returns `integrations` unchanged.
|
|
15
|
+
*
|
|
16
|
+
* `_init` applies the same swap to `defaultIntegrations`, but SDKs that seed their integrations
|
|
17
|
+
* through the user `integrations` option instead (e.g. the `@sentry/aws-serverless` Lambda layer
|
|
18
|
+
* entry) never hit that path, so they call this directly from their own `getDefaultIntegrations`.
|
|
19
|
+
*
|
|
20
|
+
* Note the asymmetry: appended channel integrations are not limited to ones whose OTel counterpart
|
|
21
|
+
* was in `integrations`. For `@sentry/node` that makes no difference (the incoming list carries the
|
|
22
|
+
* whole OTel performance set), but a caller with a narrower list (e.g. `@sentry/aws-serverless`)
|
|
23
|
+
* gains channel coverage for libraries it never shipped OTel integrations for. Channel integrations
|
|
24
|
+
* produce nothing but spans, so this is gated on span recording. Exported so SDKs that build their
|
|
25
|
+
* own default-integration set can apply the same logic instead of duplicating it.
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyDiagnosticsChannelInjectionIntegrations(integrations: Integration[], options: Options): Integration[];
|
|
10
28
|
/**
|
|
11
29
|
* Initialize Sentry for Node.
|
|
12
30
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.67.0",
|
|
4
4
|
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"@opentelemetry/instrumentation": "^0.220.0",
|
|
70
70
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
71
71
|
"@sentry/conventions": "^0.16.0",
|
|
72
|
-
"@sentry/core": "10.
|
|
73
|
-
"@sentry/node-core": "10.
|
|
74
|
-
"@sentry/opentelemetry": "10.
|
|
75
|
-
"@sentry/server-utils": "10.
|
|
72
|
+
"@sentry/core": "10.67.0",
|
|
73
|
+
"@sentry/node-core": "10.67.0",
|
|
74
|
+
"@sentry/opentelemetry": "10.67.0",
|
|
75
|
+
"@sentry/server-utils": "10.67.0",
|
|
76
76
|
"import-in-the-middle": "^3.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
var MongodbCommandType = /* @__PURE__ */ ((MongodbCommandType2) => {
|
|
4
|
-
MongodbCommandType2["CREATE_INDEXES"] = "createIndexes";
|
|
5
|
-
MongodbCommandType2["FIND_AND_MODIFY"] = "findAndModify";
|
|
6
|
-
MongodbCommandType2["IS_MASTER"] = "isMaster";
|
|
7
|
-
MongodbCommandType2["COUNT"] = "count";
|
|
8
|
-
MongodbCommandType2["AGGREGATE"] = "aggregate";
|
|
9
|
-
MongodbCommandType2["UNKNOWN"] = "unknown";
|
|
10
|
-
return MongodbCommandType2;
|
|
11
|
-
})(MongodbCommandType || {});
|
|
12
|
-
|
|
13
|
-
exports.MongodbCommandType = MongodbCommandType;
|
|
14
|
-
//# sourceMappingURL=internal-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.js","sources":["../../../../../../src/integrations/tracing/mongo/vendored/internal-types.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongodb\n * - Upstream version: @opentelemetry/instrumentation-mongodb@0.71.0\n * - Trimmed to the driver-internal types actually used by the instrumentation\n */\n\nexport type MongoInternalCommand = {\n findandmodify: boolean;\n createIndexes: boolean;\n count: boolean;\n aggregate: boolean;\n ismaster: boolean;\n indexes?: unknown[];\n query?: Record<string, unknown>;\n limit?: number;\n q?: Record<string, unknown>;\n u?: Record<string, unknown>;\n};\n\nexport type CursorState = { cmd: MongoInternalCommand } & Record<string, unknown>;\n\n// https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/core/wireprotocol/index.js\nexport type WireProtocolInternal = {\n insert: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n update: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n remove: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n killCursors: (server: MongoInternalTopology, ns: string, cursorState: CursorState, callback: Function) => unknown;\n getMore: (\n server: MongoInternalTopology,\n ns: string,\n cursorState: CursorState,\n batchSize: number,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n query: (\n server: MongoInternalTopology,\n ns: string,\n cmd: MongoInternalCommand,\n cursorState: CursorState,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n command: (\n server: MongoInternalTopology,\n ns: string,\n cmd: MongoInternalCommand,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/topologies/server.js#L172\n// https://github.com/mongodb/node-mongodb-native/blob/2.2/lib/server.js#L174\nexport type MongoInternalTopology = {\n s?: {\n // those are for mongodb@3\n options?: {\n host?: string;\n port?: number;\n servername?: string;\n };\n // those are for mongodb@2\n host?: string;\n port?: number;\n };\n // mongodb@3 with useUnifiedTopology option\n description?: {\n address?: string;\n };\n};\n\nexport enum MongodbCommandType {\n CREATE_INDEXES = 'createIndexes',\n FIND_AND_MODIFY = 'findAndModify',\n IS_MASTER = 'isMaster',\n COUNT = 'count',\n AGGREGATE = 'aggregate',\n UNKNOWN = 'unknown',\n}\n\n// https://github.com/mongodb/js-bson/blob/main/src/bson.ts\nexport type Document = {\n [key: string]: any;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/v6.4.0/src/utils.ts#L281\nexport interface MongodbNamespace {\n db: string;\n collection?: string;\n}\n\nexport type V4Connection = {\n command: Function;\n // From version 6.4.0 the method does not expect a callback and returns a promise\n // https://github.com/mongodb/node-mongodb-native/blob/v6.4.2/src/cmap/connection.ts\n commandPromise(\n ns: MongodbNamespace,\n cmd: Document,\n options: undefined | unknown,\n // From v6.6.0 we have this new param which is a constructor function\n // https://github.com/mongodb/node-mongodb-native/blob/v6.6.0/src/cmap/connection.ts#L588\n responseType: undefined | unknown,\n ): Promise<any>;\n // Earlier versions expect a callback param and return void\n // https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection.ts\n commandCallback(ns: MongodbNamespace, cmd: Document, options: undefined | unknown, callback: any): void;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection_pool.ts\nexport type V4ConnectionPool = {\n // Instrumentation just cares about carrying the async context so\n // types of callback params are not needed\n checkOut: (callback: (error: any, connection: any) => void) => void;\n};\n"],"names":["MongodbCommandType"],"mappings":";;AA8FO,IAAK,kBAAA,qBAAAA,mBAAAA,KAAL;AACL,EAAAA,oBAAA,gBAAA,CAAA,GAAiB,eAAA;AACjB,EAAAA,oBAAA,iBAAA,CAAA,GAAkB,eAAA;AAClB,EAAAA,oBAAA,WAAA,CAAA,GAAY,UAAA;AACZ,EAAAA,oBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,oBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,oBAAA,SAAA,CAAA,GAAU,SAAA;AANA,EAAA,OAAAA,mBAAAA;AAAA,CAAA,EAAA,kBAAA,IAAA,EAAA;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
const ATTR_DB_CONNECTION_STRING = "db.connection_string";
|
|
4
|
-
const ATTR_DB_MONGODB_COLLECTION = "db.mongodb.collection";
|
|
5
|
-
const DB_SYSTEM_VALUE_MONGODB = "mongodb";
|
|
6
|
-
|
|
7
|
-
exports.ATTR_DB_CONNECTION_STRING = ATTR_DB_CONNECTION_STRING;
|
|
8
|
-
exports.ATTR_DB_MONGODB_COLLECTION = ATTR_DB_MONGODB_COLLECTION;
|
|
9
|
-
exports.DB_SYSTEM_VALUE_MONGODB = DB_SYSTEM_VALUE_MONGODB;
|
|
10
|
-
//# sourceMappingURL=semconv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/mongo/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongodb\n * - Upstream version: @opentelemetry/instrumentation-mongodb@0.71.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * Deprecated, use `server.address`, `server.port` attributes instead.\n *\n * @deprecated Replaced by `server.address` and `server.port`.\n */\nexport const ATTR_DB_CONNECTION_STRING = 'db.connection_string' as const;\n\n/**\n * Deprecated, use `db.collection.name` instead.\n *\n * @deprecated Replaced by `db.collection.name`.\n */\nexport const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const;\n\n/**\n * Enum value \"mongodb\" for attribute `db.system`.\n */\nexport const DB_SYSTEM_VALUE_MONGODB = 'mongodb' as const;\n"],"names":[],"mappings":";;AAoBO,MAAM,yBAAA,GAA4B;AAOlC,MAAM,0BAAA,GAA6B;AAKnC,MAAM,uBAAA,GAA0B;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongoose\n * - Upstream version: @opentelemetry/instrumentation-mongoose@0.64.0\n */\n\n/**\n * Deprecated, use `db.collection.name` instead.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n *\n * @deprecated Replaced by `db.collection.name`.\n */\nexport const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const;\n"],"names":[],"mappings":";;AAgBO,MAAM,0BAAA,GAA6B;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var MongodbCommandType = /* @__PURE__ */ ((MongodbCommandType2) => {
|
|
2
|
-
MongodbCommandType2["CREATE_INDEXES"] = "createIndexes";
|
|
3
|
-
MongodbCommandType2["FIND_AND_MODIFY"] = "findAndModify";
|
|
4
|
-
MongodbCommandType2["IS_MASTER"] = "isMaster";
|
|
5
|
-
MongodbCommandType2["COUNT"] = "count";
|
|
6
|
-
MongodbCommandType2["AGGREGATE"] = "aggregate";
|
|
7
|
-
MongodbCommandType2["UNKNOWN"] = "unknown";
|
|
8
|
-
return MongodbCommandType2;
|
|
9
|
-
})(MongodbCommandType || {});
|
|
10
|
-
|
|
11
|
-
export { MongodbCommandType };
|
|
12
|
-
//# sourceMappingURL=internal-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.js","sources":["../../../../../../src/integrations/tracing/mongo/vendored/internal-types.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongodb\n * - Upstream version: @opentelemetry/instrumentation-mongodb@0.71.0\n * - Trimmed to the driver-internal types actually used by the instrumentation\n */\n\nexport type MongoInternalCommand = {\n findandmodify: boolean;\n createIndexes: boolean;\n count: boolean;\n aggregate: boolean;\n ismaster: boolean;\n indexes?: unknown[];\n query?: Record<string, unknown>;\n limit?: number;\n q?: Record<string, unknown>;\n u?: Record<string, unknown>;\n};\n\nexport type CursorState = { cmd: MongoInternalCommand } & Record<string, unknown>;\n\n// https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/core/wireprotocol/index.js\nexport type WireProtocolInternal = {\n insert: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n update: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n remove: (\n server: MongoInternalTopology,\n ns: string,\n ops: unknown[],\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n killCursors: (server: MongoInternalTopology, ns: string, cursorState: CursorState, callback: Function) => unknown;\n getMore: (\n server: MongoInternalTopology,\n ns: string,\n cursorState: CursorState,\n batchSize: number,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n query: (\n server: MongoInternalTopology,\n ns: string,\n cmd: MongoInternalCommand,\n cursorState: CursorState,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n command: (\n server: MongoInternalTopology,\n ns: string,\n cmd: MongoInternalCommand,\n options: unknown | Function,\n callback?: Function,\n ) => unknown;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/topologies/server.js#L172\n// https://github.com/mongodb/node-mongodb-native/blob/2.2/lib/server.js#L174\nexport type MongoInternalTopology = {\n s?: {\n // those are for mongodb@3\n options?: {\n host?: string;\n port?: number;\n servername?: string;\n };\n // those are for mongodb@2\n host?: string;\n port?: number;\n };\n // mongodb@3 with useUnifiedTopology option\n description?: {\n address?: string;\n };\n};\n\nexport enum MongodbCommandType {\n CREATE_INDEXES = 'createIndexes',\n FIND_AND_MODIFY = 'findAndModify',\n IS_MASTER = 'isMaster',\n COUNT = 'count',\n AGGREGATE = 'aggregate',\n UNKNOWN = 'unknown',\n}\n\n// https://github.com/mongodb/js-bson/blob/main/src/bson.ts\nexport type Document = {\n [key: string]: any;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/v6.4.0/src/utils.ts#L281\nexport interface MongodbNamespace {\n db: string;\n collection?: string;\n}\n\nexport type V4Connection = {\n command: Function;\n // From version 6.4.0 the method does not expect a callback and returns a promise\n // https://github.com/mongodb/node-mongodb-native/blob/v6.4.2/src/cmap/connection.ts\n commandPromise(\n ns: MongodbNamespace,\n cmd: Document,\n options: undefined | unknown,\n // From v6.6.0 we have this new param which is a constructor function\n // https://github.com/mongodb/node-mongodb-native/blob/v6.6.0/src/cmap/connection.ts#L588\n responseType: undefined | unknown,\n ): Promise<any>;\n // Earlier versions expect a callback param and return void\n // https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection.ts\n commandCallback(ns: MongodbNamespace, cmd: Document, options: undefined | unknown, callback: any): void;\n};\n\n// https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection_pool.ts\nexport type V4ConnectionPool = {\n // Instrumentation just cares about carrying the async context so\n // types of callback params are not needed\n checkOut: (callback: (error: any, connection: any) => void) => void;\n};\n"],"names":["MongodbCommandType"],"mappings":"AA8FO,IAAK,kBAAA,qBAAAA,mBAAAA,KAAL;AACL,EAAAA,oBAAA,gBAAA,CAAA,GAAiB,eAAA;AACjB,EAAAA,oBAAA,iBAAA,CAAA,GAAkB,eAAA;AAClB,EAAAA,oBAAA,WAAA,CAAA,GAAY,UAAA;AACZ,EAAAA,oBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,oBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,oBAAA,SAAA,CAAA,GAAU,SAAA;AANA,EAAA,OAAAA,mBAAAA;AAAA,CAAA,EAAA,kBAAA,IAAA,EAAA;;;;"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const ATTR_DB_CONNECTION_STRING = "db.connection_string";
|
|
2
|
-
const ATTR_DB_MONGODB_COLLECTION = "db.mongodb.collection";
|
|
3
|
-
const DB_SYSTEM_VALUE_MONGODB = "mongodb";
|
|
4
|
-
|
|
5
|
-
export { ATTR_DB_CONNECTION_STRING, ATTR_DB_MONGODB_COLLECTION, DB_SYSTEM_VALUE_MONGODB };
|
|
6
|
-
//# sourceMappingURL=semconv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/mongo/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongodb\n * - Upstream version: @opentelemetry/instrumentation-mongodb@0.71.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * Deprecated, use `server.address`, `server.port` attributes instead.\n *\n * @deprecated Replaced by `server.address` and `server.port`.\n */\nexport const ATTR_DB_CONNECTION_STRING = 'db.connection_string' as const;\n\n/**\n * Deprecated, use `db.collection.name` instead.\n *\n * @deprecated Replaced by `db.collection.name`.\n */\nexport const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const;\n\n/**\n * Enum value \"mongodb\" for attribute `db.system`.\n */\nexport const DB_SYSTEM_VALUE_MONGODB = 'mongodb' as const;\n"],"names":[],"mappings":"AAoBO,MAAM,yBAAA,GAA4B;AAOlC,MAAM,0BAAA,GAA6B;AAKnC,MAAM,uBAAA,GAA0B;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mongoose\n * - Upstream version: @opentelemetry/instrumentation-mongoose@0.64.0\n */\n\n/**\n * Deprecated, use `db.collection.name` instead.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n *\n * @deprecated Replaced by `db.collection.name`.\n */\nexport const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const;\n"],"names":[],"mappings":"AAgBO,MAAM,0BAAA,GAA6B;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated, use `server.address`, `server.port` attributes instead.
|
|
3
|
-
*
|
|
4
|
-
* @deprecated Replaced by `server.address` and `server.port`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
|
|
7
|
-
/**
|
|
8
|
-
* Deprecated, use `db.collection.name` instead.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated Replaced by `db.collection.name`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ATTR_DB_MONGODB_COLLECTION: "db.mongodb.collection";
|
|
13
|
-
/**
|
|
14
|
-
* Enum value "mongodb" for attribute `db.system`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const DB_SYSTEM_VALUE_MONGODB: "mongodb";
|
|
17
|
-
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/semconv.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAG,sBAA+B,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAG,uBAAgC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAG,SAAkB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated, use `db.collection.name` instead.
|
|
3
|
-
*
|
|
4
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Replaced by `db.collection.name`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ATTR_DB_MONGODB_COLLECTION: "db.mongodb.collection";
|
|
9
|
-
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/semconv.ts"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAG,uBAAgC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated, use `server.address`, `server.port` attributes instead.
|
|
3
|
-
*
|
|
4
|
-
* @deprecated Replaced by `server.address` and `server.port`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
|
|
7
|
-
/**
|
|
8
|
-
* Deprecated, use `db.collection.name` instead.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated Replaced by `db.collection.name`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ATTR_DB_MONGODB_COLLECTION: "db.mongodb.collection";
|
|
13
|
-
/**
|
|
14
|
-
* Enum value "mongodb" for attribute `db.system`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const DB_SYSTEM_VALUE_MONGODB: "mongodb";
|
|
17
|
-
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated, use `db.collection.name` instead.
|
|
3
|
-
*
|
|
4
|
-
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Replaced by `db.collection.name`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ATTR_DB_MONGODB_COLLECTION: "db.mongodb.collection";
|
|
9
|
-
//# sourceMappingURL=semconv.d.ts.map
|