@sentry/node 9.9.0 → 9.10.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.
Files changed (135) hide show
  1. package/build/cjs/index.js +2 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/anr/index.js +1 -1
  4. package/build/cjs/integrations/console.js +1 -1
  5. package/build/cjs/integrations/console.js.map +1 -1
  6. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  7. package/build/cjs/integrations/tracing/connect.js +1 -1
  8. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  9. package/build/cjs/integrations/tracing/dataloader.js +24 -18
  10. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  11. package/build/cjs/integrations/tracing/genericPool.js +16 -11
  12. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  13. package/build/cjs/integrations/tracing/knex.js +14 -9
  14. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  15. package/build/cjs/integrations/tracing/prisma.js +19 -7
  16. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  17. package/build/cjs/integrations/tracing/tedious.js +18 -13
  18. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  19. package/build/cjs/integrations/tracing/vercelai/index.js +135 -134
  20. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
  21. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +20 -5
  22. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  23. package/build/cjs/log.js +200 -0
  24. package/build/cjs/log.js.map +1 -0
  25. package/build/cjs/otel/instrument.js +54 -3
  26. package/build/cjs/otel/instrument.js.map +1 -1
  27. package/build/cjs/sdk/index.js +15 -33
  28. package/build/cjs/sdk/index.js.map +1 -1
  29. package/build/esm/index.js +2 -0
  30. package/build/esm/index.js.map +1 -1
  31. package/build/esm/integrations/anr/index.js +1 -1
  32. package/build/esm/integrations/anr/worker-script.js +2 -2
  33. package/build/esm/integrations/console.js +2 -2
  34. package/build/esm/integrations/console.js.map +1 -1
  35. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  36. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  37. package/build/esm/integrations/tracing/connect.js +1 -1
  38. package/build/esm/integrations/tracing/connect.js.map +1 -1
  39. package/build/esm/integrations/tracing/dataloader.js +26 -20
  40. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  41. package/build/esm/integrations/tracing/genericPool.js +17 -12
  42. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  43. package/build/esm/integrations/tracing/knex.js +15 -10
  44. package/build/esm/integrations/tracing/knex.js.map +1 -1
  45. package/build/esm/integrations/tracing/prisma.js +19 -7
  46. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  47. package/build/esm/integrations/tracing/tedious.js +19 -14
  48. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  49. package/build/esm/integrations/tracing/vercelai/index.js +136 -135
  50. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
  51. package/build/esm/integrations/tracing/vercelai/instrumentation.js +21 -6
  52. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  53. package/build/esm/log.js +193 -0
  54. package/build/esm/log.js.map +1 -0
  55. package/build/esm/otel/instrument.js +54 -4
  56. package/build/esm/otel/instrument.js.map +1 -1
  57. package/build/esm/package.json +1 -1
  58. package/build/esm/sdk/index.js +16 -34
  59. package/build/esm/sdk/index.js.map +1 -1
  60. package/build/types/index.d.ts +2 -0
  61. package/build/types/index.d.ts.map +1 -1
  62. package/build/types/integrations/console.d.ts.map +1 -1
  63. package/build/types/integrations/http/index.d.ts +1 -1
  64. package/build/types/integrations/tracing/amqplib.d.ts +2 -1
  65. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  66. package/build/types/integrations/tracing/connect.d.ts +2 -1
  67. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  68. package/build/types/integrations/tracing/dataloader.d.ts +2 -1
  69. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
  70. package/build/types/integrations/tracing/express.d.ts +4 -2
  71. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  72. package/build/types/integrations/tracing/fastify.d.ts +2 -1
  73. package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
  74. package/build/types/integrations/tracing/genericPool.d.ts +2 -1
  75. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
  76. package/build/types/integrations/tracing/graphql.d.ts +1 -1
  77. package/build/types/integrations/tracing/hapi/index.d.ts +2 -1
  78. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  79. package/build/types/integrations/tracing/kafka.d.ts +2 -1
  80. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  81. package/build/types/integrations/tracing/knex.d.ts +2 -1
  82. package/build/types/integrations/tracing/knex.d.ts.map +1 -1
  83. package/build/types/integrations/tracing/koa.d.ts +2 -1
  84. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  85. package/build/types/integrations/tracing/lrumemoizer.d.ts +2 -1
  86. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
  87. package/build/types/integrations/tracing/mongo.d.ts +2 -1
  88. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  89. package/build/types/integrations/tracing/mongoose.d.ts +2 -1
  90. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  91. package/build/types/integrations/tracing/mysql.d.ts +2 -1
  92. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  93. package/build/types/integrations/tracing/mysql2.d.ts +2 -1
  94. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  95. package/build/types/integrations/tracing/postgres.d.ts +2 -1
  96. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  97. package/build/types/integrations/tracing/prisma.d.ts +1 -1
  98. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  99. package/build/types/integrations/tracing/tedious.d.ts +2 -1
  100. package/build/types/integrations/tracing/tedious.d.ts.map +1 -1
  101. package/build/types/integrations/tracing/vercelai/index.d.ts +2 -1
  102. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
  103. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +7 -1
  104. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
  105. package/build/types/log.d.ts +151 -0
  106. package/build/types/log.d.ts.map +1 -0
  107. package/build/types/otel/instrument.d.ts +14 -1
  108. package/build/types/otel/instrument.d.ts.map +1 -1
  109. package/build/types/sdk/index.d.ts.map +1 -1
  110. package/build/types-ts3.8/index.d.ts +2 -0
  111. package/build/types-ts3.8/integrations/http/index.d.ts +1 -1
  112. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +2 -1
  113. package/build/types-ts3.8/integrations/tracing/connect.d.ts +2 -1
  114. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +2 -1
  115. package/build/types-ts3.8/integrations/tracing/express.d.ts +4 -2
  116. package/build/types-ts3.8/integrations/tracing/fastify.d.ts +2 -1
  117. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +2 -1
  118. package/build/types-ts3.8/integrations/tracing/graphql.d.ts +1 -1
  119. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +2 -1
  120. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +2 -1
  121. package/build/types-ts3.8/integrations/tracing/knex.d.ts +2 -1
  122. package/build/types-ts3.8/integrations/tracing/koa.d.ts +2 -1
  123. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +2 -1
  124. package/build/types-ts3.8/integrations/tracing/mongo.d.ts +2 -1
  125. package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +2 -1
  126. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +2 -1
  127. package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +2 -1
  128. package/build/types-ts3.8/integrations/tracing/postgres.d.ts +2 -1
  129. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
  130. package/build/types-ts3.8/integrations/tracing/tedious.d.ts +2 -1
  131. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +2 -1
  132. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +7 -1
  133. package/build/types-ts3.8/log.d.ts +158 -0
  134. package/build/types-ts3.8/otel/instrument.d.ts +14 -1
  135. package/package.json +3 -3
@@ -73,7 +73,7 @@ interface HttpOptions {
73
73
  _experimentalConfig?: ConstructorParameters<typeof HttpInstrumentation>[0];
74
74
  };
75
75
  }
76
- export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig | undefined) => void) & {
76
+ export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
77
77
  id: string;
78
78
  };
79
79
  /** Exported only for tests. */
@@ -1,4 +1,5 @@
1
- export declare const instrumentAmqplib: ((options?: unknown) => void) & {
1
+ import { AmqplibInstrumentation } from '@opentelemetry/instrumentation-amqplib';
2
+ export declare const instrumentAmqplib: ((options?: unknown) => AmqplibInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/amqplib.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;;CAAqF,CAAC;AAWpH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
1
+ {"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/amqplib.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAqC,MAAM,wCAAwC,CAAC;AAiBnH,eAAO,MAAM,iBAAiB;;CAAqF,CAAC;AAWpH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
@@ -1,7 +1,8 @@
1
+ import { ConnectInstrumentation } from '@opentelemetry/instrumentation-connect';
1
2
  type ConnectApp = {
2
3
  use: (middleware: any) => void;
3
4
  };
4
- export declare const instrumentConnect: ((options?: unknown) => void) & {
5
+ export declare const instrumentConnect: ((options?: unknown) => ConnectInstrumentation) & {
5
6
  id: string;
6
7
  };
7
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/connect.ts"],"names":[],"mappings":"AAaA,KAAK,UAAU,GAAG;IAEhB,GAAG,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC,CAAC;AAIF,eAAO,MAAM,iBAAiB;;CAA+E,CAAC;AAW9G;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAQzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,QAAS,UAAU,KAAG,IAc1D,CAAC"}
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAahF,KAAK,UAAU,GAAG;IAEhB,GAAG,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC,CAAC;AAIF,eAAO,MAAM,iBAAiB;;CAA+E,CAAC;AAW9G;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAQzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,QAAS,UAAU,KAAG,IAc1D,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentDataloader: ((options?: unknown) => void) & {
1
+ import { DataloaderInstrumentation } from '@opentelemetry/instrumentation-dataloader';
2
+ export declare const instrumentDataloader: ((options?: unknown) => DataloaderInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/dataloader.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,oBAAoB;;CAMhC,CAAC;AAiCF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,0CAA4C,CAAC"}
1
+ {"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/dataloader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF,eAAO,MAAM,oBAAoB;;CAMhC,CAAC;AAuCF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,0CAA4C,CAAC"}
@@ -1,9 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import type * as http from 'node:http';
3
- export declare const instrumentExpress: ((options?: unknown) => void) & {
3
+ import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express';
4
+ import { ExpressInstrumentationV5 } from './express-v5/instrumentation';
5
+ export declare const instrumentExpress: ((options?: unknown) => ExpressInstrumentation) & {
4
6
  id: string;
5
7
  };
6
- export declare const instrumentExpressV5: ((options?: unknown) => void) & {
8
+ export declare const instrumentExpressV5: ((options?: unknown) => ExpressInstrumentationV5) & {
7
9
  id: string;
8
10
  };
9
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/express.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAwDvC,eAAO,MAAM,iBAAiB;;CAO7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAO/B,CAAC;AAYF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAEzE,UAAU,eAAgB,SAAQ,KAAK;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GA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AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAEzE,UAAU,eAAgB,SAAQ,KAAK;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,KAAK,iBAAiB,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;AAEzG,KAAK,sBAAsB,GAAG,CAC5B,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,KACnC,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,iBAAiB,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,sBAAsB,CAqB3F;AAgBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE;IAAE,GAAG,EAAE,CAAC,UAAU,EAAE,iBAAiB,GAAG,sBAAsB,KAAK,OAAO,CAAA;CAAE,EACjF,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAIN"}
@@ -1,3 +1,4 @@
1
+ import { FastifyInstrumentation } from '@opentelemetry/instrumentation-fastify';
1
2
  /**
2
3
  * Minimal request type containing properties around route information.
3
4
  * Works for Fastify 3, 4 and presumably 5.
@@ -57,7 +58,7 @@ interface FastifyHandlerOptions {
57
58
  */
58
59
  shouldHandleError: (error: Error, request: MinimalFastifyRequest, reply: MinimalFastifyReply) => boolean;
59
60
  }
60
- export declare const instrumentFastify: ((options?: unknown) => void) & {
61
+ export declare const instrumentFastify: ((options?: unknown) => FastifyInstrumentation) & {
61
62
  id: string;
62
63
  };
63
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/fastify.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AAEH,UAAU,qBAAsB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,YAAY,CAAC,EAAE;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AAEH,UAAU,mBAAoB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvD,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,UAAU,OAAO;IAEf,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC;CAC1E;AAUD,UAAU,qBAAqB;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC;CAC1G;AAID,eAAO,MAAM,iBAAiB;;CAS7B,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAazE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC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zG"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentGenericPool: ((options?: unknown) => void) & {
1
+ import { GenericPoolInstrumentation } from '@opentelemetry/instrumentation-generic-pool';
2
+ export declare const instrumentGenericPool: ((options?: unknown) => GenericPoolInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"genericPool.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/genericPool.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB;;CAAqF,CAAC;AA2BxH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,0CAA6C,CAAC"}
1
+ {"version":3,"file":"genericPool.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/genericPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAOzF,eAAO,MAAM,qBAAqB;;CAAqF,CAAC;AAgCxH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,0CAA6C,CAAC"}
@@ -24,7 +24,7 @@ interface GraphqlOptions {
24
24
  */
25
25
  useOperationNameForRootSpan?: boolean;
26
26
  }
27
- export declare const instrumentGraphql: ((options?: GraphqlOptions | undefined) => void) & {
27
+ export declare const instrumentGraphql: ((options?: GraphqlOptions | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
28
28
  id: string;
29
29
  };
30
30
  /**
@@ -1,5 +1,6 @@
1
+ import { HapiInstrumentation } from '@opentelemetry/instrumentation-hapi';
1
2
  import type { Server } from './types';
2
- export declare const instrumentHapi: ((options?: unknown) => void) & {
3
+ export declare const instrumentHapi: ((options?: unknown) => HapiInstrumentation) & {
3
4
  id: string;
4
5
  };
5
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAyB,MAAM,EAAE,MAAM,SAAS,CAAC;AAI7D,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAWxG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,0CAAsC,CAAC;AAkBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAiB1E,OAAO,KAAK,EAAyB,MAAM,EAAE,MAAM,SAAS,CAAC;AAI7D,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAWxG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,0CAAsC,CAAC;AAkBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentKafka: ((options?: unknown) => void) & {
1
+ import { KafkaJsInstrumentation } from '@opentelemetry/instrumentation-kafkajs';
2
+ export declare const instrumentKafka: ((options?: unknown) => KafkaJsInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/kafka.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe;;CAW3B,CAAC;AAWF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
1
+ {"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/kafka.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAQhF,eAAO,MAAM,eAAe;;CAW3B,CAAC;AAWF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentKnex: ((options?: unknown) => void) & {
1
+ import { KnexInstrumentation } from '@opentelemetry/instrumentation-knex';
2
+ export declare const instrumentKnex: ((options?: unknown) => KnexInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/knex.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;CAG1B,CAAC;AAsBF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,0CAAsC,CAAC"}
1
+ {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/knex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAO1E,eAAO,MAAM,cAAc;;CAG1B,CAAC;AA2BF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,0CAAsC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentKoa: ((options?: unknown) => void) & {
1
+ import { KoaInstrumentation } from '@opentelemetry/instrumentation-koa';
2
+ export declare const instrumentKoa: ((options?: unknown) => KoaInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,aAAa;;CAoBzB,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,0CAAqC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAW3G,CAAC"}
1
+ {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAmBxE,eAAO,MAAM,aAAa;;CAoBzB,CAAC;AAWF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,0CAAqC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAW3G,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentLruMemoizer: ((options?: unknown) => void) & {
1
+ import { LruMemoizerInstrumentation } from '@opentelemetry/instrumentation-lru-memoizer';
2
+ export declare const instrumentLruMemoizer: ((options?: unknown) => LruMemoizerInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"lrumemoizer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/lrumemoizer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;CAAmF,CAAC;AAWtH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,0CAA6C,CAAC"}
1
+ {"version":3,"file":"lrumemoizer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/lrumemoizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAQzF,eAAO,MAAM,qBAAqB;;CAAmF,CAAC;AAWtH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,0CAA6C,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentMongo: ((options?: unknown) => void) & {
1
+ import { MongoDBInstrumentation } from '@opentelemetry/instrumentation-mongodb';
2
+ export declare const instrumentMongo: ((options?: unknown) => MongoDBInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;CAS3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAGzF;AAgDD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
1
+ {"version":3,"file":"mongo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAShF,eAAO,MAAM,eAAe;;CAS3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAGzF;AAgDD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentMongoose: ((options?: unknown) => void) & {
1
+ import { MongooseInstrumentation } from '@opentelemetry/instrumentation-mongoose';
2
+ export declare const instrumentMongoose: ((options?: unknown) => MongooseInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAQ9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
1
+ {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mongoose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AASlF,eAAO,MAAM,kBAAkB;;CAQ9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentMysql: ((options?: unknown) => void) & {
1
+ import { MySQLInstrumentation } from '@opentelemetry/instrumentation-mysql';
2
+ export declare const instrumentMysql: ((options?: unknown) => MySQLInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;CAA+E,CAAC;AAW5G;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
1
+ {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAO5E,eAAO,MAAM,eAAe;;CAA+E,CAAC;AAW5G;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,0CAAuC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentMysql2: ((options?: unknown) => void) & {
1
+ import { MySQL2Instrumentation } from '@opentelemetry/instrumentation-mysql2';
2
+ export declare const instrumentMysql2: ((options?: unknown) => MySQL2Instrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;CAQ5B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,0CAAwC,CAAC"}
1
+ {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAS9E,eAAO,MAAM,gBAAgB;;CAQ5B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,0CAAwC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentPostgres: ((options?: unknown) => void) & {
1
+ import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
2
+ export declare const instrumentPostgres: ((options?: unknown) => PgInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAS9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAStE,eAAO,MAAM,kBAAkB;;CAS9B,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { Instrumentation } from '@opentelemetry/instrumentation';
2
2
  export declare const instrumentPrisma: ((options?: {
3
3
  prismaInstrumentation?: Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig> | undefined;
4
- } | undefined) => void) & {
4
+ } | undefined) => Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
5
5
  id: string;
6
6
  };
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AA0DtE,eAAO,MAAM,gBAAgB;;;;CAU5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,iBAAiB;IAI1B;;;;;;OAMG;;oDA6BN,CAAC"}
1
+ {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAgEtE,eAAO,MAAM,gBAAgB;;;;CAU5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,iBAAiB;IAI1B;;;;;;OAMG;;oDAmCN,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentTedious: ((options?: unknown) => void) & {
1
+ import { TediousInstrumentation } from '@opentelemetry/instrumentation-tedious';
2
+ export declare const instrumentTedious: ((options?: unknown) => TediousInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/tedious.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;;CAAiF,CAAC;AA0BhH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
1
+ {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/tedious.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAgBhF,eAAO,MAAM,iBAAiB;;CAAiF,CAAC;AA+BhH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
@@ -1,4 +1,5 @@
1
- export declare const instrumentVercelAi: ((options?: unknown) => void) & {
1
+ import { SentryVercelAiInstrumentation } from './instrumentation';
2
+ export declare const instrumentVercelAi: ((options?: unknown) => SentryVercelAiInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;CAAwF,CAAC;AAmJxH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAIlE,eAAO,MAAM,kBAAkB;;CAAwF,CAAC;AAoJxH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,mBAAmB,0CAA0C,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { InstrumentationBase } from '@opentelemetry/instrumentation';
2
2
  import type { InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
3
- export declare let sentryVercelAiPatched: boolean;
4
3
  /**
5
4
  * This detects is added by the Sentry Vercel AI Integration to detect if the integration should
6
5
  * be enabled.
@@ -8,11 +7,18 @@ export declare let sentryVercelAiPatched: boolean;
8
7
  * It also patches the `ai` module to enable Vercel AI telemetry automatically for all methods.
9
8
  */
10
9
  export declare class SentryVercelAiInstrumentation extends InstrumentationBase {
10
+ private _isPatched;
11
+ private _callbacks;
11
12
  constructor(config?: InstrumentationConfig);
12
13
  /**
13
14
  * Initializes the instrumentation by defining the modules to be patched.
14
15
  */
15
16
  init(): InstrumentationModuleDefinition;
17
+ /**
18
+ * Call the provided callback when the module is patched.
19
+ * If it has already been patched, the callback will be called immediately.
20
+ */
21
+ callWhenPatched(callback: () => void): void;
16
22
  /**
17
23
  * Patches module exports to enable Vercel AI telemetry.
18
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAuC,MAAM,gCAAgC,CAAC;AAC1G,OAAO,KAAK,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAwB7G,eAAO,IAAI,qBAAqB,SAAQ,CAAC;AAEzC;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB;gBACjD,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,+BAA+B;IAK9C;;OAEG;IACH,OAAO,CAAC,MAAM;CA+Bf"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAuC,MAAM,gCAAgC,CAAC;AAC1G,OAAO,KAAK,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAwB7G;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB;IACpE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAsB;gBAErB,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,+BAA+B;IAK9C;;;OAGG;IACI,eAAe,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,MAAM;CAkCf"}
@@ -0,0 +1,151 @@
1
+ import type { Log, ParameterizedString } from '@sentry/core';
2
+ type CaptureLogArgs = [message: ParameterizedString, attributes?: Log['attributes']] | [messageTemplate: string, messageParams: Array<unknown>, attributes?: Log['attributes']];
3
+ /**
4
+ * @summary Capture a log with the `trace` level. Requires `_experiments.enableLogs` to be enabled.
5
+ *
6
+ * You can either pass a message and attributes or a message template, params and attributes.
7
+ *
8
+ * @example
9
+ *
10
+ * ```
11
+ * Sentry.logger.trace('Starting database connection', {
12
+ * database: 'users',
13
+ * connectionId: 'conn_123'
14
+ * });
15
+ * ```
16
+ *
17
+ * @example With template strings
18
+ *
19
+ * ```
20
+ * Sentry.logger.trace('Database connection %s established for %s',
21
+ * ['successful', 'users'],
22
+ * { connectionId: 'conn_123' }
23
+ * );
24
+ * ```
25
+ */
26
+ export declare function trace(...args: CaptureLogArgs): void;
27
+ /**
28
+ * @summary Capture a log with the `debug` level. Requires `_experiments.enableLogs` to be enabled.
29
+ *
30
+ * You can either pass a message and attributes or a message template, params and attributes.
31
+ *
32
+ * @example
33
+ *
34
+ * ```
35
+ * Sentry.logger.debug('Cache miss for user profile', {
36
+ * userId: 'user_123',
37
+ * cacheKey: 'profile:user_123'
38
+ * });
39
+ * ```
40
+ *
41
+ * @example With template strings
42
+ *
43
+ * ```
44
+ * Sentry.logger.debug('Cache %s for %s: %s',
45
+ * ['miss', 'user profile', 'key not found'],
46
+ * { userId: 'user_123' }
47
+ * );
48
+ * ```
49
+ */
50
+ export declare function debug(...args: CaptureLogArgs): void;
51
+ /**
52
+ * @summary Capture a log with the `info` level. Requires `_experiments.enableLogs` to be enabled.
53
+ *
54
+ * You can either pass a message and attributes or a message template, params and attributes.
55
+ *
56
+ * @example
57
+ *
58
+ * ```
59
+ * Sentry.logger.info('User profile updated', {
60
+ * userId: 'user_123',
61
+ * updatedFields: ['email', 'preferences']
62
+ * });
63
+ * ```
64
+ *
65
+ * @example With template strings
66
+ *
67
+ * ```
68
+ * Sentry.logger.info('User %s updated their %s',
69
+ * ['John Doe', 'profile settings'],
70
+ * { userId: 'user_123' }
71
+ * );
72
+ * ```
73
+ */
74
+ export declare function info(...args: CaptureLogArgs): void;
75
+ /**
76
+ * @summary Capture a log with the `warn` level. Requires `_experiments.enableLogs` to be enabled.
77
+ *
78
+ * You can either pass a message and attributes or a message template, params and attributes.
79
+ *
80
+ * @example
81
+ *
82
+ * ```
83
+ * Sentry.logger.warn('Rate limit approaching', {
84
+ * endpoint: '/api/users',
85
+ * currentRate: '95/100',
86
+ * resetTime: '2024-03-20T10:00:00Z'
87
+ * });
88
+ * ```
89
+ *
90
+ * @example With template strings
91
+ *
92
+ * ```
93
+ * Sentry.logger.warn('Rate limit %s for %s: %s',
94
+ * ['approaching', '/api/users', '95/100 requests'],
95
+ * { resetTime: '2024-03-20T10:00:00Z' }
96
+ * );
97
+ * ```
98
+ */
99
+ export declare function warn(...args: CaptureLogArgs): void;
100
+ /**
101
+ * @summary Capture a log with the `error` level. Requires `_experiments.enableLogs` to be enabled.
102
+ *
103
+ * You can either pass a message and attributes or a message template, params and attributes.
104
+ *
105
+ * @example
106
+ *
107
+ * ```
108
+ * Sentry.logger.error('Failed to process payment', {
109
+ * orderId: 'order_123',
110
+ * errorCode: 'PAYMENT_FAILED',
111
+ * amount: 99.99
112
+ * });
113
+ * ```
114
+ *
115
+ * @example With template strings
116
+ *
117
+ * ```
118
+ * Sentry.logger.error('Payment processing failed for order %s: %s',
119
+ * ['order_123', 'insufficient funds'],
120
+ * { amount: 99.99 }
121
+ * );
122
+ * ```
123
+ */
124
+ export declare function error(...args: CaptureLogArgs): void;
125
+ /**
126
+ * @summary Capture a log with the `fatal` level. Requires `_experiments.enableLogs` to be enabled.
127
+ *
128
+ * You can either pass a message and attributes or a message template, params and attributes.
129
+ *
130
+ * @example
131
+ *
132
+ * ```
133
+ * Sentry.logger.fatal('Database connection pool exhausted', {
134
+ * database: 'users',
135
+ * activeConnections: 100,
136
+ * maxConnections: 100
137
+ * });
138
+ * ```
139
+ *
140
+ * @example With template strings
141
+ *
142
+ * ```
143
+ * Sentry.logger.fatal('Database %s: %s connections active',
144
+ * ['connection pool exhausted', '100/100'],
145
+ * { database: 'users' }
146
+ * );
147
+ * ```
148
+ */
149
+ export declare function fatal(...args: CaptureLogArgs): void;
150
+ export { fmt } from '@sentry/core';
151
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/log.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,GAAG,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAG/E,KAAK,cAAc,GACf,CAAC,OAAO,EAAE,mBAAmB,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,GAC9D,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;AAwB7F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,KAAK,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAEnD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,KAAK,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAEnD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAElD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAElD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,KAAK,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAEnD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,KAAK,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI,CAEnD;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC"}
@@ -5,7 +5,20 @@ export declare const INSTRUMENTED: Record<string, Instrumentation>;
5
5
  * Instrument an OpenTelemetry instrumentation once.
6
6
  * This will skip running instrumentation again if it was already instrumented.
7
7
  */
8
- export declare function generateInstrumentOnce<Options = unknown>(name: string, creator: (options?: Options) => Instrumentation): ((options?: Options) => void) & {
8
+ export declare function generateInstrumentOnce<Options = unknown, InstrumentationInstance extends Instrumentation = Instrumentation>(name: string, creator: (options?: Options) => InstrumentationInstance): ((options?: Options) => InstrumentationInstance) & {
9
9
  id: string;
10
10
  };
11
+ /**
12
+ * Ensure a given callback is called when the instrumentation is actually wrapping something.
13
+ * This can be used to ensure some logic is only called when the instrumentation is actually active.
14
+ *
15
+ * This function returns a function that can be invoked with a callback.
16
+ * This callback will either be invoked immediately
17
+ * (e.g. if the instrumentation was already wrapped, or if _wrap could not be patched),
18
+ * or once the instrumentation is actually wrapping something.
19
+ *
20
+ * Make sure to call this function right after adding the instrumentation, otherwise it may be too late!
21
+ * The returned callback can be used any time, and also multiple times.
22
+ */
23
+ export declare function instrumentWhenWrapped<T extends Instrumentation>(instrumentation: T): (callback: () => void) => void;
11
24
  //# sourceMappingURL=instrument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAA4B,MAAM,gCAAgC,CAAC;AAEhG,+BAA+B;AAC/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAM,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAqBhD"}
1
+ {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAA4B,MAAM,gCAA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oot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAmCzD,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAwBxE;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;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,CAEhG;AAmED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CA0BjD"}
@@ -46,4 +46,6 @@ export { NodeOptions } from './types';
46
46
  export { setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
47
47
  export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, updateSpanName, zodErrorsIntegration, profiler, } from '@sentry/core';
48
48
  export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/core';
49
+ import * as logger from './log';
50
+ export { logger };
49
51
  //# sourceMappingURL=index.d.ts.map
@@ -73,7 +73,7 @@ interface HttpOptions {
73
73
  _experimentalConfig?: ConstructorParameters<typeof HttpInstrumentation>[0];
74
74
  };
75
75
  }
76
- export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig | undefined) => void) & {
76
+ export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
77
77
  id: string;
78
78
  };
79
79
  /** Exported only for tests. */
@@ -1,4 +1,5 @@
1
- export declare const instrumentAmqplib: ((options?: unknown) => void) & {
1
+ import { AmqplibInstrumentation } from '@opentelemetry/instrumentation-amqplib';
2
+ export declare const instrumentAmqplib: ((options?: unknown) => AmqplibInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1,7 +1,8 @@
1
+ import { ConnectInstrumentation } from '@opentelemetry/instrumentation-connect';
1
2
  type ConnectApp = {
2
3
  use: (middleware: any) => void;
3
4
  };
4
- export declare const instrumentConnect: ((options?: unknown) => void) & {
5
+ export declare const instrumentConnect: ((options?: unknown) => ConnectInstrumentation) & {
5
6
  id: string;
6
7
  };
7
8
  /**
@@ -1,4 +1,5 @@
1
- export declare const instrumentDataloader: ((options?: unknown) => void) & {
1
+ import { DataloaderInstrumentation } from '@opentelemetry/instrumentation-dataloader';
2
+ export declare const instrumentDataloader: ((options?: unknown) => DataloaderInstrumentation) & {
2
3
  id: string;
3
4
  };
4
5
  /**
@@ -1,9 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import * as http from 'node:http';
3
- export declare const instrumentExpress: ((options?: unknown) => void) & {
3
+ import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express';
4
+ import { ExpressInstrumentationV5 } from './express-v5/instrumentation';
5
+ export declare const instrumentExpress: ((options?: unknown) => ExpressInstrumentation) & {
4
6
  id: string;
5
7
  };
6
- export declare const instrumentExpressV5: ((options?: unknown) => void) & {
8
+ export declare const instrumentExpressV5: ((options?: unknown) => ExpressInstrumentationV5) & {
7
9
  id: string;
8
10
  };
9
11
  /**
@@ -1,3 +1,4 @@
1
+ import { FastifyInstrumentation } from '@opentelemetry/instrumentation-fastify';
1
2
  /**
2
3
  * Minimal request type containing properties around route information.
3
4
  * Works for Fastify 3, 4 and presumably 5.
@@ -57,7 +58,7 @@ interface FastifyHandlerOptions {
57
58
  */
58
59
  shouldHandleError: (error: Error, request: MinimalFastifyRequest, reply: MinimalFastifyReply) => boolean;
59
60
  }
60
- export declare const instrumentFastify: ((options?: unknown) => void) & {
61
+ export declare const instrumentFastify: ((options?: unknown) => FastifyInstrumentation) & {
61
62
  id: string;
62
63
  };
63
64
  /**