@sentry/node 9.41.0 → 10.0.0-alpha.1
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/integrations/tracing/express.js +0 -13
- package/build/cjs/integrations/tracing/express.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/index.js +10 -56
- package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +0 -1
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/redis.js +4 -4
- package/build/cjs/integrations/tracing/redis.js.map +1 -1
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js +2 -15
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/cjs/sdk/initOtel.js +8 -6
- package/build/cjs/sdk/initOtel.js.map +1 -1
- package/build/esm/integrations/tracing/express.js +1 -13
- package/build/esm/integrations/tracing/express.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/index.js +10 -56
- package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +1 -2
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/redis.js +3 -3
- package/build/esm/integrations/tracing/redis.js.map +1 -1
- package/build/esm/integrations/tracing/vercelai/instrumentation.js +3 -16
- package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/initOtel.js +9 -7
- package/build/esm/sdk/initOtel.js.map +1 -1
- package/build/types/integrations/tracing/express.d.ts +0 -4
- package/build/types/integrations/tracing/express.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify/index.d.ts +2 -38
- package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
- package/build/types/sdk/initOtel.d.ts.map +1 -1
- package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -4
- package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +2 -38
- package/package.json +31 -31
- package/build/cjs/integrations/tracing/express-v5/enums/AttributeNames.js +0 -22
- package/build/cjs/integrations/tracing/express-v5/enums/AttributeNames.js.map +0 -1
- package/build/cjs/integrations/tracing/express-v5/enums/ExpressLayerType.js +0 -23
- package/build/cjs/integrations/tracing/express-v5/enums/ExpressLayerType.js.map +0 -1
- package/build/cjs/integrations/tracing/express-v5/instrumentation.js +0 -297
- package/build/cjs/integrations/tracing/express-v5/instrumentation.js.map +0 -1
- package/build/cjs/integrations/tracing/express-v5/internal-types.js +0 -29
- package/build/cjs/integrations/tracing/express-v5/internal-types.js.map +0 -1
- package/build/cjs/integrations/tracing/express-v5/utils.js +0 -176
- package/build/cjs/integrations/tracing/express-v5/utils.js.map +0 -1
- package/build/esm/integrations/tracing/express-v5/enums/AttributeNames.js +0 -22
- package/build/esm/integrations/tracing/express-v5/enums/AttributeNames.js.map +0 -1
- package/build/esm/integrations/tracing/express-v5/enums/ExpressLayerType.js +0 -23
- package/build/esm/integrations/tracing/express-v5/enums/ExpressLayerType.js.map +0 -1
- package/build/esm/integrations/tracing/express-v5/instrumentation.js +0 -293
- package/build/esm/integrations/tracing/express-v5/instrumentation.js.map +0 -1
- package/build/esm/integrations/tracing/express-v5/internal-types.js +0 -26
- package/build/esm/integrations/tracing/express-v5/internal-types.js.map +0 -1
- package/build/esm/integrations/tracing/express-v5/utils.js +0 -169
- package/build/esm/integrations/tracing/express-v5/utils.js.map +0 -1
- package/build/types/integrations/tracing/express-v5/enums/AttributeNames.d.ts +0 -5
- package/build/types/integrations/tracing/express-v5/enums/AttributeNames.d.ts.map +0 -1
- package/build/types/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts +0 -6
- package/build/types/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts.map +0 -1
- package/build/types/integrations/tracing/express-v5/instrumentation.d.ts +0 -27
- package/build/types/integrations/tracing/express-v5/instrumentation.d.ts.map +0 -1
- package/build/types/integrations/tracing/express-v5/internal-types.d.ts +0 -38
- package/build/types/integrations/tracing/express-v5/internal-types.d.ts.map +0 -1
- package/build/types/integrations/tracing/express-v5/types.d.ts +0 -39
- package/build/types/integrations/tracing/express-v5/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/express-v5/utils.d.ts +0 -51
- package/build/types/integrations/tracing/express-v5/utils.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/tracing/express-v5/enums/AttributeNames.d.ts +0 -5
- package/build/types-ts3.8/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts +0 -6
- package/build/types-ts3.8/integrations/tracing/express-v5/instrumentation.d.ts +0 -27
- package/build/types-ts3.8/integrations/tracing/express-v5/internal-types.d.ts +0 -38
- package/build/types-ts3.8/integrations/tracing/express-v5/types.d.ts +0 -39
- package/build/types-ts3.8/integrations/tracing/express-v5/utils.d.ts +0 -57
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Attributes } from '@opentelemetry/api';
|
|
2
|
-
import { ExpressLayerType } from './enums/ExpressLayerType';
|
|
3
|
-
import { ExpressLayer, PatchedRequest } from './internal-types';
|
|
4
|
-
import { ExpressInstrumentationConfig, LayerPathSegment } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* Store layers path in the request to be able to construct route later
|
|
7
|
-
* @param request The request where
|
|
8
|
-
* @param [value] the value to push into the array
|
|
9
|
-
*/
|
|
10
|
-
export declare const storeLayerPath: (request: PatchedRequest, value?: string) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Recursively search the router path from layer stack
|
|
13
|
-
* @param path The path to reconstruct
|
|
14
|
-
* @param layer The layer to reconstruct from
|
|
15
|
-
* @returns The reconstructed path
|
|
16
|
-
*/
|
|
17
|
-
export declare const getRouterPath: (path: string, layer: ExpressLayer) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Parse express layer context to retrieve a name and attributes.
|
|
20
|
-
* @param route The route of the layer
|
|
21
|
-
* @param layer Express layer
|
|
22
|
-
* @param [layerPath] if present, the path on which the layer has been mounted
|
|
23
|
-
*/
|
|
24
|
-
export declare const getLayerMetadata: (route: string, layer: ExpressLayer, layerPath?: string) => {
|
|
25
|
-
attributes: Attributes;
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Check whether the given request is ignored by configuration
|
|
30
|
-
* It will not re-throw exceptions from `list` provided by the client
|
|
31
|
-
* @param constant e.g URL of request
|
|
32
|
-
* @param [list] List of ignore patterns
|
|
33
|
-
* @param [onException] callback for doing something when an exception has
|
|
34
|
-
* occurred
|
|
35
|
-
*/
|
|
36
|
-
export declare const isLayerIgnored: (name: string, type: ExpressLayerType, config?: ExpressInstrumentationConfig) => boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Converts a user-provided error value into an error and error message pair
|
|
39
|
-
*
|
|
40
|
-
* @param error - User-provided error value
|
|
41
|
-
* @returns Both an Error or string representation of the value and an error message
|
|
42
|
-
*/
|
|
43
|
-
export declare const asErrorAndMessage: (error: unknown) => [
|
|
44
|
-
/*error*/ string | Error,
|
|
45
|
-
/*message*/ string
|
|
46
|
-
];
|
|
47
|
-
/**
|
|
48
|
-
* Extracts the layer path from the route arguments
|
|
49
|
-
*
|
|
50
|
-
* @param args - Arguments of the route
|
|
51
|
-
* @returns The layer path
|
|
52
|
-
*/
|
|
53
|
-
export declare const getLayerPath: (args: [
|
|
54
|
-
LayerPathSegment | LayerPathSegment[],
|
|
55
|
-
...unknown[]
|
|
56
|
-
]) => string | undefined;
|
|
57
|
-
//# sourceMappingURL=utils.d.ts.map
|