@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.
Files changed (73) hide show
  1. package/build/cjs/integrations/tracing/express.js +0 -13
  2. package/build/cjs/integrations/tracing/express.js.map +1 -1
  3. package/build/cjs/integrations/tracing/fastify/index.js +10 -56
  4. package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
  5. package/build/cjs/integrations/tracing/index.js +0 -1
  6. package/build/cjs/integrations/tracing/index.js.map +1 -1
  7. package/build/cjs/integrations/tracing/redis.js +4 -4
  8. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  9. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +2 -15
  10. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  11. package/build/cjs/sdk/initOtel.js +8 -6
  12. package/build/cjs/sdk/initOtel.js.map +1 -1
  13. package/build/esm/integrations/tracing/express.js +1 -13
  14. package/build/esm/integrations/tracing/express.js.map +1 -1
  15. package/build/esm/integrations/tracing/fastify/index.js +10 -56
  16. package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
  17. package/build/esm/integrations/tracing/index.js +1 -2
  18. package/build/esm/integrations/tracing/index.js.map +1 -1
  19. package/build/esm/integrations/tracing/redis.js +3 -3
  20. package/build/esm/integrations/tracing/redis.js.map +1 -1
  21. package/build/esm/integrations/tracing/vercelai/instrumentation.js +3 -16
  22. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  23. package/build/esm/package.json +1 -1
  24. package/build/esm/sdk/initOtel.js +9 -7
  25. package/build/esm/sdk/initOtel.js.map +1 -1
  26. package/build/types/integrations/tracing/express.d.ts +0 -4
  27. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  28. package/build/types/integrations/tracing/fastify/index.d.ts +2 -38
  29. package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
  30. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  31. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
  32. package/build/types/sdk/initOtel.d.ts.map +1 -1
  33. package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -4
  34. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +2 -38
  35. package/package.json +31 -31
  36. package/build/cjs/integrations/tracing/express-v5/enums/AttributeNames.js +0 -22
  37. package/build/cjs/integrations/tracing/express-v5/enums/AttributeNames.js.map +0 -1
  38. package/build/cjs/integrations/tracing/express-v5/enums/ExpressLayerType.js +0 -23
  39. package/build/cjs/integrations/tracing/express-v5/enums/ExpressLayerType.js.map +0 -1
  40. package/build/cjs/integrations/tracing/express-v5/instrumentation.js +0 -297
  41. package/build/cjs/integrations/tracing/express-v5/instrumentation.js.map +0 -1
  42. package/build/cjs/integrations/tracing/express-v5/internal-types.js +0 -29
  43. package/build/cjs/integrations/tracing/express-v5/internal-types.js.map +0 -1
  44. package/build/cjs/integrations/tracing/express-v5/utils.js +0 -176
  45. package/build/cjs/integrations/tracing/express-v5/utils.js.map +0 -1
  46. package/build/esm/integrations/tracing/express-v5/enums/AttributeNames.js +0 -22
  47. package/build/esm/integrations/tracing/express-v5/enums/AttributeNames.js.map +0 -1
  48. package/build/esm/integrations/tracing/express-v5/enums/ExpressLayerType.js +0 -23
  49. package/build/esm/integrations/tracing/express-v5/enums/ExpressLayerType.js.map +0 -1
  50. package/build/esm/integrations/tracing/express-v5/instrumentation.js +0 -293
  51. package/build/esm/integrations/tracing/express-v5/instrumentation.js.map +0 -1
  52. package/build/esm/integrations/tracing/express-v5/internal-types.js +0 -26
  53. package/build/esm/integrations/tracing/express-v5/internal-types.js.map +0 -1
  54. package/build/esm/integrations/tracing/express-v5/utils.js +0 -169
  55. package/build/esm/integrations/tracing/express-v5/utils.js.map +0 -1
  56. package/build/types/integrations/tracing/express-v5/enums/AttributeNames.d.ts +0 -5
  57. package/build/types/integrations/tracing/express-v5/enums/AttributeNames.d.ts.map +0 -1
  58. package/build/types/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts +0 -6
  59. package/build/types/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts.map +0 -1
  60. package/build/types/integrations/tracing/express-v5/instrumentation.d.ts +0 -27
  61. package/build/types/integrations/tracing/express-v5/instrumentation.d.ts.map +0 -1
  62. package/build/types/integrations/tracing/express-v5/internal-types.d.ts +0 -38
  63. package/build/types/integrations/tracing/express-v5/internal-types.d.ts.map +0 -1
  64. package/build/types/integrations/tracing/express-v5/types.d.ts +0 -39
  65. package/build/types/integrations/tracing/express-v5/types.d.ts.map +0 -1
  66. package/build/types/integrations/tracing/express-v5/utils.d.ts +0 -51
  67. package/build/types/integrations/tracing/express-v5/utils.d.ts.map +0 -1
  68. package/build/types-ts3.8/integrations/tracing/express-v5/enums/AttributeNames.d.ts +0 -5
  69. package/build/types-ts3.8/integrations/tracing/express-v5/enums/ExpressLayerType.d.ts +0 -6
  70. package/build/types-ts3.8/integrations/tracing/express-v5/instrumentation.d.ts +0 -27
  71. package/build/types-ts3.8/integrations/tracing/express-v5/internal-types.d.ts +0 -38
  72. package/build/types-ts3.8/integrations/tracing/express-v5/types.d.ts +0 -39
  73. 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