@sentry/node 10.59.0 → 10.61.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 (157) hide show
  1. package/build/cjs/index.js +3 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/fs/index.js +8 -17
  4. package/build/cjs/integrations/fs/index.js.map +1 -1
  5. package/build/cjs/integrations/fs/vendored/instrumentation.js +110 -161
  6. package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
  7. package/build/cjs/integrations/node-fetch/index.js +7 -8
  8. package/build/cjs/integrations/node-fetch/index.js.map +1 -1
  9. package/build/cjs/integrations/node-fetch/vendored/semconv.js +28 -0
  10. package/build/cjs/integrations/node-fetch/vendored/semconv.js.map +1 -0
  11. package/build/cjs/integrations/node-fetch/vendored/undici.js +90 -127
  12. package/build/cjs/integrations/node-fetch/vendored/undici.js.map +1 -1
  13. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +5 -6
  14. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  15. package/build/cjs/integrations/tracing/kafka/index.js +1 -11
  16. package/build/cjs/integrations/tracing/kafka/index.js.map +1 -1
  17. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +45 -247
  18. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
  19. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +4 -8
  20. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
  21. package/build/cjs/integrations/tracing/kafka/vendored/utils.js +113 -0
  22. package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +1 -0
  23. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +1 -2
  24. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  25. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +1 -2
  26. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -1
  27. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +1 -2
  28. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
  29. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +1 -2
  30. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  31. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +2 -3
  32. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  33. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +1 -2
  34. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +1 -1
  35. package/build/cjs/integrations/tracing/redis/index.js +4 -2
  36. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  37. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +2 -3
  38. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +3 -4
  40. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  41. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +1 -2
  42. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
  43. package/build/cjs/sdk/initOtel.js +2 -1
  44. package/build/cjs/sdk/initOtel.js.map +1 -1
  45. package/build/esm/index.js +1 -1
  46. package/build/esm/integrations/fs/index.js +9 -18
  47. package/build/esm/integrations/fs/index.js.map +1 -1
  48. package/build/esm/integrations/fs/vendored/instrumentation.js +111 -162
  49. package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
  50. package/build/esm/integrations/node-fetch/index.js +8 -9
  51. package/build/esm/integrations/node-fetch/index.js.map +1 -1
  52. package/build/esm/integrations/node-fetch/vendored/semconv.js +15 -0
  53. package/build/esm/integrations/node-fetch/vendored/semconv.js.map +1 -0
  54. package/build/esm/integrations/node-fetch/vendored/undici.js +79 -116
  55. package/build/esm/integrations/node-fetch/vendored/undici.js.map +1 -1
  56. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +6 -7
  57. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  58. package/build/esm/integrations/tracing/kafka/index.js +2 -12
  59. package/build/esm/integrations/tracing/kafka/index.js.map +1 -1
  60. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +47 -249
  61. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
  62. package/build/esm/integrations/tracing/kafka/vendored/semconv.js +3 -5
  63. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
  64. package/build/esm/integrations/tracing/kafka/vendored/utils.js +107 -0
  65. package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +1 -0
  66. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +2 -3
  67. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  68. package/build/esm/integrations/tracing/mongo/vendored/utils.js +2 -3
  69. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -1
  70. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +2 -3
  71. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
  72. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +2 -3
  73. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  74. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +3 -4
  75. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  76. package/build/esm/integrations/tracing/postgres/vendored/utils.js +2 -3
  77. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +1 -1
  78. package/build/esm/integrations/tracing/redis/index.js +4 -2
  79. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  80. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +3 -4
  81. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  82. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +4 -5
  83. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  84. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +2 -3
  85. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
  86. package/build/esm/package.json +1 -1
  87. package/build/esm/sdk/initOtel.js +2 -1
  88. package/build/esm/sdk/initOtel.js.map +1 -1
  89. package/build/types/index.d.ts +1 -1
  90. package/build/types/index.d.ts.map +1 -1
  91. package/build/types/integrations/fs/index.d.ts +2 -14
  92. package/build/types/integrations/fs/index.d.ts.map +1 -1
  93. package/build/types/integrations/fs/vendored/instrumentation.d.ts +2 -10
  94. package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
  95. package/build/types/integrations/fs/vendored/types.d.ts +1 -2
  96. package/build/types/integrations/fs/vendored/types.d.ts.map +1 -1
  97. package/build/types/integrations/node-fetch/index.d.ts.map +1 -1
  98. package/build/types/integrations/node-fetch/vendored/internal-types.d.ts.map +1 -1
  99. package/build/types/integrations/node-fetch/vendored/semconv.d.ts +13 -0
  100. package/build/types/integrations/node-fetch/vendored/semconv.d.ts.map +1 -0
  101. package/build/types/integrations/node-fetch/vendored/types.d.ts +2 -4
  102. package/build/types/integrations/node-fetch/vendored/types.d.ts.map +1 -1
  103. package/build/types/integrations/node-fetch/vendored/undici.d.ts +6 -7
  104. package/build/types/integrations/node-fetch/vendored/undici.d.ts.map +1 -1
  105. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +1 -1
  106. package/build/types/integrations/tracing/kafka/index.d.ts.map +1 -1
  107. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +3 -13
  108. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +1 -1
  109. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -32
  110. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +1 -1
  111. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +9 -28
  112. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +1 -1
  113. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +29 -0
  114. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +1 -0
  115. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +1 -1
  116. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -1
  117. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +1 -1
  118. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
  119. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +1 -1
  120. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +1 -1
  121. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  122. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +1 -1
  123. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +1 -1
  124. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +1 -1
  125. package/build/types/sdk/initOtel.d.ts.map +1 -1
  126. package/build/types-ts3.8/index.d.ts +1 -1
  127. package/build/types-ts3.8/integrations/fs/index.d.ts +2 -14
  128. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +2 -10
  129. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +1 -2
  130. package/build/types-ts3.8/integrations/node-fetch/vendored/semconv.d.ts +13 -0
  131. package/build/types-ts3.8/integrations/node-fetch/vendored/types.d.ts +2 -4
  132. package/build/types-ts3.8/integrations/node-fetch/vendored/undici.d.ts +6 -7
  133. package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +3 -13
  134. package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -32
  135. package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +9 -28
  136. package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +29 -0
  137. package/package.json +5 -6
  138. package/build/cjs/integrations/tracing/kafka/vendored/internal-types.js +0 -6
  139. package/build/cjs/integrations/tracing/kafka/vendored/internal-types.js.map +0 -1
  140. package/build/cjs/integrations/tracing/kafka/vendored/propagator.js +0 -22
  141. package/build/cjs/integrations/tracing/kafka/vendored/propagator.js.map +0 -1
  142. package/build/esm/integrations/tracing/kafka/vendored/internal-types.js +0 -4
  143. package/build/esm/integrations/tracing/kafka/vendored/internal-types.js.map +0 -1
  144. package/build/esm/integrations/tracing/kafka/vendored/propagator.js +0 -20
  145. package/build/esm/integrations/tracing/kafka/vendored/propagator.js.map +0 -1
  146. package/build/types/integrations/tracing/kafka/vendored/internal-types.d.ts +0 -9
  147. package/build/types/integrations/tracing/kafka/vendored/internal-types.d.ts.map +0 -1
  148. package/build/types/integrations/tracing/kafka/vendored/propagator.d.ts +0 -3
  149. package/build/types/integrations/tracing/kafka/vendored/propagator.d.ts.map +0 -1
  150. package/build/types/integrations/tracing/kafka/vendored/types.d.ts +0 -26
  151. package/build/types/integrations/tracing/kafka/vendored/types.d.ts.map +0 -1
  152. package/build/types/integrations/tracing/utils/sql-common.d.ts +0 -3
  153. package/build/types/integrations/tracing/utils/sql-common.d.ts.map +0 -1
  154. package/build/types-ts3.8/integrations/tracing/kafka/vendored/internal-types.d.ts +0 -9
  155. package/build/types-ts3.8/integrations/tracing/kafka/vendored/propagator.d.ts +0 -3
  156. package/build/types-ts3.8/integrations/tracing/kafka/vendored/types.d.ts +0 -26
  157. package/build/types-ts3.8/integrations/tracing/utils/sql-common.d.ts +0 -3
@@ -1,31 +1,3 @@
1
- export interface InstrumentationEvent<T> {
2
- id: string;
3
- type: string;
4
- timestamp: number;
5
- payload: T;
6
- }
7
- export type RequestEvent = InstrumentationEvent<{
8
- apiKey: number;
9
- apiName: string;
10
- apiVersion: number;
11
- broker: string;
12
- clientId: string;
13
- correlationId: number;
14
- createdAt: number;
15
- duration: number;
16
- pendingDuration: number;
17
- sentAt: number;
18
- size: number;
19
- }>;
20
- export type RemoveInstrumentationEventListener<_T> = () => void;
21
- export type ConsumerEvents = {
22
- REQUEST: 'consumer.network.request';
23
- [key: string]: string;
24
- };
25
- export type ProducerEvents = {
26
- REQUEST: 'producer.network.request';
27
- [key: string]: string;
28
- };
29
1
  type Sender = {
30
2
  send(record: any): Promise<any>;
31
3
  sendBatch(batch: any): Promise<any>;
@@ -34,8 +6,6 @@ export type Producer = Sender & {
34
6
  connect(): Promise<void>;
35
7
  disconnect(): Promise<void>;
36
8
  isIdempotent(): boolean;
37
- readonly events: ProducerEvents;
38
- on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
39
9
  transaction(): Promise<Transaction>;
40
10
  [key: string]: any;
41
11
  };
@@ -50,8 +20,6 @@ export type Consumer = {
50
20
  disconnect(): Promise<void>;
51
21
  subscribe(subscription: any): Promise<void>;
52
22
  run(config?: any): Promise<void>;
53
- readonly events: ConsumerEvents;
54
- on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
55
23
  [key: string]: any;
56
24
  };
57
25
  export declare class Kafka {
@@ -1 +1 @@
1
- {"version":3,"file":"kafkajs-types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/kafka/vendored/kafkajs-types.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAA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d,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,IAAI,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,IAAI,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,kBAAkB,IAAI,GAAG,CAAC;IAC1B,SAAS,IAAI,OAAO,CAAC;IACrB,OAAO,IAAI,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC,CAAC"}
@@ -96,36 +96,17 @@ export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: "send";
96
96
  */
97
97
  export declare const MESSAGING_SYSTEM_VALUE_KAFKA: "kafka";
98
98
  /**
99
- * Number of messages that were delivered to the application.
99
+ * Describes a class of error the operation ended with.
100
100
  *
101
- * @note Records the number of messages pulled from the broker or number of messages dispatched to the application in push-based scenarios.
102
- * The metric **SHOULD** be reported once per message delivery. For example, if receiving and processing operations are both instrumented for a single message delivery, this counter is incremented when the message is received and not reported when it is processed.
103
- *
104
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
105
- */
106
- export declare const METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES: "messaging.client.consumed.messages";
107
- /**
108
- * Duration of messaging operation initiated by a producer or consumer client.
109
- *
110
- * @note This metric **SHOULD NOT** be used to report processing duration - processing duration is reported in `messaging.process.duration` metric.
111
- *
112
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
101
+ * @example timeout
102
+ * @example java.net.UnknownHostException
103
+ * @example server_certificate_invalid
104
+ * @example 500
113
105
  */
114
- export declare const METRIC_MESSAGING_CLIENT_OPERATION_DURATION: "messaging.client.operation.duration";
106
+ export declare const ATTR_ERROR_TYPE: "error.type";
115
107
  /**
116
- * Number of messages producer attempted to send to the broker.
117
- *
118
- * @note This metric **MUST NOT** count messages that were created but haven't yet been sent.
119
- *
120
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
121
- */
122
- export declare const METRIC_MESSAGING_CLIENT_SENT_MESSAGES: "messaging.client.sent.messages";
123
- /**
124
- * Duration of processing operation.
125
- *
126
- * @note This metric **MUST** be reported for operations with `messaging.operation.type` that matches `process`.
127
- *
128
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
108
+ * Enum value "_OTHER" for attribute {@link ATTR_ERROR_TYPE}. A fallback error value to be used when
109
+ * the instrumentation doesn't define a custom value.
129
110
  */
130
- export declare const METRIC_MESSAGING_PROCESS_DURATION: "messaging.process.duration";
111
+ export declare const ERROR_TYPE_VALUE_OTHER: "_OTHER";
131
112
  //# sourceMappingURL=semconv.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/kafka/vendored/semconv.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,EAAG,+BAAwC,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,EAAG,4BAAqC,CAAC;AAErF;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,EAAG,oCAA6C,CAAC;AAErG;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,EAAG,6BAAsC,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,EAAG,mCAA4C,CAAC;AAEnG;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,EAAG,0BAAmC,CAAC;AAEjF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,EAAG,0BAAmC,CAAC;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAG,MAAe,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,yCAAyC,EAAG,oCAA6C,CAAC;AAEvG;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,EAAG,qCAA8C,CAAC;AAEzG;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,EAAG,gCAAyC,CAAC;AAE/F;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,EAAG,4BAAqC,CAAC"}
1
+ {"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/kafka/vendored/semconv.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,EAAG,+BAAwC,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,EAAG,4BAAqC,CAAC;AAErF;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,EAAG,oCAA6C,CAAC;AAErG;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,EAAG,6BAAsC,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,EAAG,mCAA4C,CAAC;AAEnG;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,EAAG,0BAAmC,CAAC;AAEjF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,EAAG,0BAAmC,CAAC;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAG,MAAe,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAG,YAAqB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { Span, SpanAttributes, SpanLink } from '@sentry/core';
2
+ import type { KafkaMessage, Message } from './kafkajs-types';
3
+ export interface ConsumerSpanOptions {
4
+ topic: string;
5
+ message: KafkaMessage | undefined;
6
+ operationType: string;
7
+ attributes: SpanAttributes;
8
+ links?: SpanLink[];
9
+ }
10
+ /**
11
+ * Reads a header value off a kafkajs message as a string. kafkajs delivers headers as `Buffer`s (or
12
+ * arrays of them), so we normalize to a string before handing them to Sentry's trace helpers.
13
+ */
14
+ export declare function getHeaderAsString(headers: KafkaMessage['headers'], key: string): string | undefined;
15
+ /**
16
+ * Builds a span link to the producer span carried in the message headers, mirroring the upstream
17
+ * behavior of linking each batch-processed message to its originating producer span.
18
+ */
19
+ export declare function getLinksFromHeaders(headers: KafkaMessage['headers']): SpanLink[] | undefined;
20
+ /** Starts an inactive consumer (process/receive) span carrying the kafkajs messaging attributes. */
21
+ export declare function startConsumerSpan({ topic, message, operationType, links, attributes }: ConsumerSpanOptions): Span;
22
+ /** Starts an inactive producer span and propagates its trace into the message headers. */
23
+ export declare function startProducerSpan(topic: string, message: Message): Span;
24
+ /**
25
+ * Resolves once `sendPromise` settles, ending all `spans` and, on failure, marking them with the
26
+ * error status and `error.type` before re-throwing.
27
+ */
28
+ export declare function endSpansOnPromise<T>(spans: Span[], sendPromise: Promise<T>): Promise<T>;
29
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/kafka/vendored/utils.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AASnE,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAoB7D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMnG;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,CAwB5F;AAED,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAAG,IAAI,CAwBjH;AAED,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA4BvE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAyBvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/knex/vendored/instrumentation.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AA0CrH,qBAAa,mBAAoB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBAC9D,MAAM,GAAE,qBAA0B;IAI9C,IAAI,IAAI,mCAAmC;IAclD,OAAO,CAAC,uCAAuC;IAe/C,OAAO,CAAC,uCAAuC;IAmB/C,OAAO,CAAC,mBAAmB;IAuD3B,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,cAAc;CAMvB"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/knex/vendored/instrumentation.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EA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,IAAI,OAAO,CAEnD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAoBzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA4CtD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,kBAAkB,CAchF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,EAClB,EAAE,EAAE,gBAAgB,EACpB,OAAO,CAAC,EAAE,GAAG,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAmBhB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,oBAAoB,EAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAC7B,cAAc,CAwBhB;AA8CD,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAO/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAkBlF;AAID,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongoose/vendored/mongoose.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,+BAA+B,EAErC,MAAM,gCAAgC,CAAC;AA6ExC,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAqC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-1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAiBrH,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBAChE,MAAM,GAAE,qBAA0B;IAIrD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2DvD,OAAO,CAAC,WAAW;IAiEnB,OAAO,CAAC,mBAAmB;CAQ5B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAuBrH,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBAChE,MAAM,GAAE,qBAA0B;IAIrD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2DvD,OAAO,CAAC,WAAW;IAiEnB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/postgres/vendored/instrumentation.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAYrH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAuBvD,qBAAa,iBAAkB,SAAQ,mBAAmB,CAAC,uBAAuB,CAAC;gBAC9D,MAAM,GAAE,uBAA4B;IAIvD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA0DvD,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,oBAAoB;IAwF5B,OAAO,CAAC,oBAAoB;CAgC7B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/postgres/vendored/instrumentation.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAmBrH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAuBvD,qBAAa,iBAAkB,SAAQ,mBAAmB,CAAC,uBAAuB,CAAC;gBAC9D,MAAM,GAAE,uBAA4B;IAIvD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA0DvD,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,oBAAoB;IAwF5B,OAAO,CAAC,oBAAoB;CAgC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/postgres/vendored/utils.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EAEd,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAe1B,eAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAcnH;AAED,wBAAgB,4BAA4B,CAAC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AAI,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,GAAG,cAAc,CAQlF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CASrH;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAI9D;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,cAAc,CAExE;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAI/E,UAAU,YAAY;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD,eAAO,IAAI,aAAa,EAAE,YAAiB,CAAC;AAG5C,eAAO,MAAM,iBAAiB,EAAE,sCAoD/B,CAAC;AAcF;;;GAGG;AACH,eAAO,MAAM,eAAe,SACtB,IAAI;;CAcT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,4EAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAI/E,UAAU,YAAY;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD,eAAO,IAAI,aAAa,EAAE,YAAiB,CAAC;AAG5C,eAAO,MAAM,iBAAiB,EAAE,sCAoD/B,CAAC;AAcF;;;GAGG;AACH,eAAO,MAAM,eAAe,SACtB,IAAI;;CAgBT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,4EAAuC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ioredis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/ioredis-instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAkBrH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AA6C5D,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,4BAA4B,CAAC;gBACxE,MAAM,GAAE,4BAAiC;IAI5D,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2BvD,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,gBAAgB;IA2CxB,OAAO,CAAC,iBAAiB;CAW1B"}
1
+ {"version":3,"file":"ioredis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/ioredis-instrumentation.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAmBrH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AA6C5D,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,4BAA4B,CAAC;gBACxE,MAAM,GAAE,4BAAiC;IAI5D,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2BvD,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,gBAAgB;IA2CxB,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAkD,MAAM,gCAAgC,CAAC;AAsBrH,OAAO,KAAK,EAAE,0BAA0B,EAAwC,MAAM,SAAS,CAAC;AAydhG,qBAAa,oBAAqB,SAAQ,mBAAmB,CAAC,0BAA0B,CAAC;IACvF,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,GAAE,0BAA+B;IAO1C,SAAS,CAAC,MAAM,GAAE,0BAA+B,GAAG,IAAI;IASjE,IAAI;IAEK,oBAAoB;IAIpB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IASvD,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAQzB"}
1
+ {"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAkD,MAAM,gCAAgC,CAAC;AAuBrH,OAAO,KAAK,EAAE,0BAA0B,EAAwC,MAAM,SAAS,CAAC;AAydhG,qBAAa,oBAAqB,SAAQ,mBAAmB,CAAC,0BAA0B,CAAC;IACvF,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,GAAE,0BAA+B;IAO1C,SAAS,CAAC,MAAM,GAAE,0BAA+B,GAAG,IAAI;IASjE,IAAI;IAEK,oBAAoB;IAIpB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IASvD,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAQzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/instrumentation.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AA8CrH,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,SAAS,aAAa;gBAE1B,MAAM,GAAE,qBAA0B;IAI9C,SAAS,CAAC,IAAI;IAkCd,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,WAAW;IAyFnB,OAAO,CAAC,mBAAmB;CAQ5B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAgDrH,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,SAAS,aAAa;gBAE1B,MAAM,GAAE,qBAA0B;IAI9C,SAAS,CAAC,IAAI;IAkCd,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,WAAW;IAyFnB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAA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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,mBAAmB,EAAE,uBAAuB,CAAC,CAuBhD;AAED,+BAA+B;AAC/B,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAiBtG"}
@@ -37,7 +37,7 @@ export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
37
37
  export { getAutoPerformanceIntegrations } from './integrations/tracing';
38
38
  export { NodeOptions } from './types';
39
39
  export { setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
40
- export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, 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, httpHeadersToSpanAttributes, winterCGHeadersToDict, 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, supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, wrapMcpServerWithSentry, featureFlagsIntegration, spanStreamingIntegration, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentStateGraphCompile, } from '@sentry/core';
40
+ export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, 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, httpHeadersToSpanAttributes, winterCGHeadersToDict, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, wrapMcpServerWithSentry, featureFlagsIntegration, spanStreamingIntegration, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentStateGraphCompile, } from '@sentry/core';
41
41
  export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, Metric, Log, LogSeverityLevel, FeatureFlagsIntegration, ExclusiveEventHintOrCaptureContext, CaptureContext, } from '@sentry/core';
42
42
  export { logger, metrics, httpServerIntegration, httpServerSpansIntegration, nodeContextIntegration, contextLinesIntegration, localVariablesIntegration, modulesIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, anrIntegration, disableAnrDetectionForCallback, spotlightIntegration, childProcessIntegration, processSessionIntegration, nodeRuntimeMetricsIntegration, NodeRuntimeMetricsOptions, consoleIntegration, pinoIntegration, createSentryWinstonTransport, SentryContextManager, systemErrorIntegration, generateInstrumentOnce, getSentryRelease, defaultStackParser, createGetModuleFromFilename, makeNodeTransport, NodeClient, cron, NODE_VERSION, validateOpenTelemetrySetup, withStreamedSpan, _INTERNAL_normalizeCollectionInterval } from '@sentry/node-core';
43
43
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { FsInstrumentationConfig } from './vendored/types';
1
2
  /**
2
3
  * This integration will create spans for `fs` API operations, like reading and writing files.
3
4
  *
@@ -7,18 +8,5 @@
7
8
  *
8
9
  * @param options Configuration for this integration.
9
10
  */
10
- export declare const fsIntegration: (options?: {
11
- /**
12
- * Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes.
13
- *
14
- * Defaults to `false`.
15
- */
16
- recordFilePaths?: boolean;
17
- /**
18
- * Setting this option to `true` will include the error messages of failed `fs` API calls as a span attribute.
19
- *
20
- * Defaults to `false`.
21
- */
22
- recordErrorMessagesAsSpanAttributes?: boolean;
23
- } | undefined) => import("@sentry/core").Integration;
11
+ export declare const fsIntegration: (options?: FsInstrumentationConfig | undefined) => import("@sentry/core").Integration;
24
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,3 @@
1
- import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { FMember, FPMember, FsInstrumentationConfig, GenericFunction } from './types';
3
- export declare class FsInstrumentation extends InstrumentationBase<FsInstrumentationConfig> {
4
- constructor(config?: FsInstrumentationConfig);
5
- init(): InstrumentationNodeModuleDefinition[];
6
- protected _patchSyncFunction<T extends GenericFunction>(functionName: FMember, original: T): T;
7
- protected _patchCallbackFunction<T extends GenericFunction>(functionName: FMember, original: T): T;
8
- protected _patchExistsCallbackFunction<T extends GenericFunction>(functionName: 'exists', original: T): T;
9
- protected _patchPromiseFunction<T extends GenericFunction>(functionName: FPMember, original: T): T;
10
- }
1
+ import { FsInstrumentationConfig } from './types';
2
+ export declare function enableFsInstrumentation(config?: FsInstrumentationConfig): void;
11
3
  //# sourceMappingURL=instrumentation.d.ts.map
@@ -1,4 +1,3 @@
1
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
1
  import * as fs from 'fs';
3
2
  export type GenericFunction = (...args: any[]) => unknown;
4
3
  export type FunctionPropertyNames<T> = Exclude<{
@@ -11,7 +10,7 @@ export type FunctionPropertyNamesTwoLevels<T> = Exclude<{
11
10
  }[keyof T], undefined>;
12
11
  export type FMember = FunctionPropertyNames<typeof fs> | FunctionPropertyNamesTwoLevels<typeof fs>;
13
12
  export type FPMember = FunctionPropertyNames<(typeof fs)['promises']> | FunctionPropertyNamesTwoLevels<(typeof fs)['promises']>;
14
- export interface FsInstrumentationConfig extends InstrumentationConfig {
13
+ export interface FsInstrumentationConfig {
15
14
  /**
16
15
  * Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes.
17
16
  */
@@ -0,0 +1,13 @@
1
+ export declare const ATTR_HTTP_REQUEST_METHOD: "http.request.method";
2
+ export declare const ATTR_HTTP_REQUEST_METHOD_ORIGINAL: "http.request.method_original";
3
+ export declare const ATTR_HTTP_RESPONSE_STATUS_CODE: "http.response.status_code";
4
+ export declare const ATTR_NETWORK_PEER_ADDRESS: "network.peer.address";
5
+ export declare const ATTR_NETWORK_PEER_PORT: "network.peer.port";
6
+ export declare const ATTR_SERVER_ADDRESS: "server.address";
7
+ export declare const ATTR_SERVER_PORT: "server.port";
8
+ export declare const ATTR_URL_FULL: "url.full";
9
+ export declare const ATTR_URL_PATH: "url.path";
10
+ export declare const ATTR_URL_QUERY: "url.query";
11
+ export declare const ATTR_URL_SCHEME: "url.scheme";
12
+ export declare const ATTR_USER_AGENT_ORIGINAL: "user_agent.original";
13
+ //# sourceMappingURL=semconv.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
- import { Attributes, Span } from '@opentelemetry/api';
2
+ import { Span, SpanAttributes } from '@sentry/core';
3
3
  export interface UndiciRequest {
4
4
  origin: string;
5
5
  method: string;
@@ -40,7 +40,7 @@ export interface ResponseHookFunction<RequestType = UndiciRequest, ResponseType
40
40
  }): void;
41
41
  }
42
42
  export interface StartSpanHookFunction<T = UndiciRequest> {
43
- (request: T): Attributes;
43
+ (request: T): SpanAttributes;
44
44
  }
45
45
  export interface UndiciInstrumentationConfig<RequestType = UndiciRequest, ResponseType = UndiciResponse> extends InstrumentationConfig {
46
46
  /** Not trace all outgoing requests that matched with custom function */
@@ -51,8 +51,6 @@ export interface UndiciInstrumentationConfig<RequestType = UndiciRequest, Respon
51
51
  responseHook?: ResponseHookFunction<RequestType, ResponseType>;
52
52
  /** Function for adding custom attributes before a span is started */
53
53
  startSpanHook?: StartSpanHookFunction<RequestType>;
54
- /** Require parent to create span for outgoing requests */
55
- requireParentforSpans?: boolean;
56
54
  /** Map the following HTTP headers to span attributes. */
57
55
  headersToSpanAttributes?: {
58
56
  requestHeaders?: string[];
@@ -1,14 +1,13 @@
1
- import { InstrumentationBase } from '@opentelemetry/instrumentation';
2
1
  import { UndiciInstrumentationConfig } from './types';
3
- export declare class UndiciInstrumentation extends InstrumentationBase<UndiciInstrumentationConfig> {
2
+ export declare class UndiciInstrumentation {
4
3
  private _channelSubs;
5
- private _recordFromReq;
6
- private _httpClientDurationHistogram;
4
+ private _spanFromReq;
5
+ private _propagationDecisionMap;
6
+ private _config;
7
7
  constructor(config?: UndiciInstrumentationConfig);
8
- protected init(): undefined;
9
8
  disable(): void;
9
+ /** Subscribe to the undici diagnostics channels (idempotent). */
10
10
  enable(): void;
11
- protected _updateMetricInstruments(): void;
12
11
  private subscribeToChannel;
13
12
  private parseRequestHeaders;
14
13
  private onRequestCreated;
@@ -16,7 +15,7 @@ export declare class UndiciInstrumentation extends InstrumentationBase<UndiciIns
16
15
  private onResponseHeaders;
17
16
  private onDone;
18
17
  private onError;
19
- private recordRequestDuration;
18
+ private injectTracePropagationHeaders;
20
19
  private getRequestMethod;
21
20
  }
22
21
  //# sourceMappingURL=undici.d.ts.map
@@ -1,16 +1,9 @@
1
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
1
2
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { KafkaJsInstrumentationConfig } from './types';
3
- export declare class KafkaJsInstrumentation extends InstrumentationBase<KafkaJsInstrumentationConfig> {
4
- private _clientDuration;
5
- private _sentMessages;
6
- private _consumedMessages;
7
- private _processDuration;
8
- constructor(config?: KafkaJsInstrumentationConfig);
9
- _updateMetricInstruments(): void;
3
+ export declare class KafkaJsInstrumentation extends InstrumentationBase<InstrumentationConfig> {
4
+ constructor(config?: InstrumentationConfig);
10
5
  protected init(): InstrumentationNodeModuleDefinition;
11
6
  private _getConsumerPatch;
12
- private _setKafkaEventListeners;
13
- private _recordClientDurationMetric;
14
7
  private _getProducerPatch;
15
8
  private _getConsumerRunPatch;
16
9
  private _getConsumerEachMessagePatch;
@@ -18,8 +11,5 @@ export declare class KafkaJsInstrumentation extends InstrumentationBase<KafkaJsI
18
11
  private _getProducerTransactionPatch;
19
12
  private _getSendBatchPatch;
20
13
  private _getSendPatch;
21
- private _endSpansOnPromise;
22
- private _startConsumerSpan;
23
- private _startProducerSpan;
24
14
  }
25
15
  //# sourceMappingURL=instrumentation.d.ts.map
@@ -1,31 +1,3 @@
1
- export interface InstrumentationEvent<T> {
2
- id: string;
3
- type: string;
4
- timestamp: number;
5
- payload: T;
6
- }
7
- export type RequestEvent = InstrumentationEvent<{
8
- apiKey: number;
9
- apiName: string;
10
- apiVersion: number;
11
- broker: string;
12
- clientId: string;
13
- correlationId: number;
14
- createdAt: number;
15
- duration: number;
16
- pendingDuration: number;
17
- sentAt: number;
18
- size: number;
19
- }>;
20
- export type RemoveInstrumentationEventListener<_T> = () => void;
21
- export type ConsumerEvents = {
22
- REQUEST: 'consumer.network.request';
23
- [key: string]: string;
24
- };
25
- export type ProducerEvents = {
26
- REQUEST: 'producer.network.request';
27
- [key: string]: string;
28
- };
29
1
  type Sender = {
30
2
  send(record: any): Promise<any>;
31
3
  sendBatch(batch: any): Promise<any>;
@@ -34,8 +6,6 @@ export type Producer = Sender & {
34
6
  connect(): Promise<void>;
35
7
  disconnect(): Promise<void>;
36
8
  isIdempotent(): boolean;
37
- readonly events: ProducerEvents;
38
- on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
39
9
  transaction(): Promise<Transaction>;
40
10
  [key: string]: any;
41
11
  };
@@ -50,8 +20,6 @@ export type Consumer = {
50
20
  disconnect(): Promise<void>;
51
21
  subscribe(subscription: any): Promise<void>;
52
22
  run(config?: any): Promise<void>;
53
- readonly events: ConsumerEvents;
54
- on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
55
23
  [key: string]: any;
56
24
  };
57
25
  export declare class Kafka {
@@ -96,36 +96,17 @@ export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: "send";
96
96
  */
97
97
  export declare const MESSAGING_SYSTEM_VALUE_KAFKA: "kafka";
98
98
  /**
99
- * Number of messages that were delivered to the application.
99
+ * Describes a class of error the operation ended with.
100
100
  *
101
- * @note Records the number of messages pulled from the broker or number of messages dispatched to the application in push-based scenarios.
102
- * The metric **SHOULD** be reported once per message delivery. For example, if receiving and processing operations are both instrumented for a single message delivery, this counter is incremented when the message is received and not reported when it is processed.
103
- *
104
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
105
- */
106
- export declare const METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES: "messaging.client.consumed.messages";
107
- /**
108
- * Duration of messaging operation initiated by a producer or consumer client.
109
- *
110
- * @note This metric **SHOULD NOT** be used to report processing duration - processing duration is reported in `messaging.process.duration` metric.
111
- *
112
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
101
+ * @example timeout
102
+ * @example java.net.UnknownHostException
103
+ * @example server_certificate_invalid
104
+ * @example 500
113
105
  */
114
- export declare const METRIC_MESSAGING_CLIENT_OPERATION_DURATION: "messaging.client.operation.duration";
106
+ export declare const ATTR_ERROR_TYPE: "error.type";
115
107
  /**
116
- * Number of messages producer attempted to send to the broker.
117
- *
118
- * @note This metric **MUST NOT** count messages that were created but haven't yet been sent.
119
- *
120
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
121
- */
122
- export declare const METRIC_MESSAGING_CLIENT_SENT_MESSAGES: "messaging.client.sent.messages";
123
- /**
124
- * Duration of processing operation.
125
- *
126
- * @note This metric **MUST** be reported for operations with `messaging.operation.type` that matches `process`.
127
- *
128
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
108
+ * Enum value "_OTHER" for attribute {@link ATTR_ERROR_TYPE}. A fallback error value to be used when
109
+ * the instrumentation doesn't define a custom value.
129
110
  */
130
- export declare const METRIC_MESSAGING_PROCESS_DURATION: "messaging.process.duration";
111
+ export declare const ERROR_TYPE_VALUE_OTHER: "_OTHER";
131
112
  //# sourceMappingURL=semconv.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { Span, SpanAttributes, SpanLink } from '@sentry/core';
2
+ import { KafkaMessage, Message } from './kafkajs-types';
3
+ export interface ConsumerSpanOptions {
4
+ topic: string;
5
+ message: KafkaMessage | undefined;
6
+ operationType: string;
7
+ attributes: SpanAttributes;
8
+ links?: SpanLink[];
9
+ }
10
+ /**
11
+ * Reads a header value off a kafkajs message as a string. kafkajs delivers headers as `Buffer`s (or
12
+ * arrays of them), so we normalize to a string before handing them to Sentry's trace helpers.
13
+ */
14
+ export declare function getHeaderAsString(headers: KafkaMessage['headers'], key: string): string | undefined;
15
+ /**
16
+ * Builds a span link to the producer span carried in the message headers, mirroring the upstream
17
+ * behavior of linking each batch-processed message to its originating producer span.
18
+ */
19
+ export declare function getLinksFromHeaders(headers: KafkaMessage['headers']): SpanLink[] | undefined;
20
+ /** Starts an inactive consumer (process/receive) span carrying the kafkajs messaging attributes. */
21
+ export declare function startConsumerSpan({ topic, message, operationType, links, attributes }: ConsumerSpanOptions): Span;
22
+ /** Starts an inactive producer span and propagates its trace into the message headers. */
23
+ export declare function startProducerSpan(topic: string, message: Message): Span;
24
+ /**
25
+ * Resolves once `sendPromise` settles, ending all `spans` and, on failure, marking them with the
26
+ * error status and `error.type` before re-throwing.
27
+ */
28
+ export declare function endSpansOnPromise<T>(spans: Span[], sendPromise: Promise<T>): Promise<T>;
29
+ //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "10.59.0",
3
+ "version": "10.61.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",
@@ -66,14 +66,13 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@opentelemetry/api": "^1.9.1",
69
- "@opentelemetry/core": "^2.6.1",
70
69
  "@opentelemetry/instrumentation": "^0.214.0",
71
70
  "@opentelemetry/sdk-trace-base": "^2.6.1",
72
71
  "@opentelemetry/semantic-conventions": "^1.40.0",
73
- "@sentry/core": "10.59.0",
74
- "@sentry/node-core": "10.59.0",
75
- "@sentry/opentelemetry": "10.59.0",
76
- "@sentry/server-utils": "10.59.0",
72
+ "@sentry/core": "10.61.0",
73
+ "@sentry/node-core": "10.61.0",
74
+ "@sentry/opentelemetry": "10.61.0",
75
+ "@sentry/server-utils": "10.61.0",
77
76
  "import-in-the-middle": "^3.0.0"
78
77
  },
79
78
  "devDependencies": {
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const EVENT_LISTENERS_SET = /* @__PURE__ */ Symbol("opentelemetry.instrumentation.kafkajs.eventListenersSet");
4
-
5
- exports.EVENT_LISTENERS_SET = EVENT_LISTENERS_SET;
6
- //# sourceMappingURL=internal-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.js","sources":["../../../../../../src/integrations/tracing/kafka/vendored/internal-types.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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-kafkajs\n * - Upstream version: @opentelemetry/instrumentation-kafkajs@0.27.0\n * - Some types vendored from kafkajs with simplifications\n */\n/* eslint-disable */\n\nimport type { Consumer, Producer } from './kafkajs-types';\n\nexport const EVENT_LISTENERS_SET = Symbol('opentelemetry.instrumentation.kafkajs.eventListenersSet');\n\nexport interface ConsumerExtended extends Consumer {\n [EVENT_LISTENERS_SET]?: boolean; // flag to identify if the event listeners for instrumentation have been set\n}\n\nexport interface ProducerExtended extends Producer {\n [EVENT_LISTENERS_SET]?: boolean; // flag to identify if the event listeners for instrumentation have been set\n}\n"],"names":[],"mappings":";;AAaO,MAAM,mBAAA,0BAA6B,yDAAyD;;;;"}
@@ -1,22 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const bufferTextMapGetter = {
4
- get(carrier, key) {
5
- if (!carrier) {
6
- return void 0;
7
- }
8
- const keys = Object.keys(carrier);
9
- for (const carrierKey of keys) {
10
- if (carrierKey === key || carrierKey.toLowerCase() === key) {
11
- return carrier[carrierKey]?.toString();
12
- }
13
- }
14
- return void 0;
15
- },
16
- keys(carrier) {
17
- return carrier ? Object.keys(carrier) : [];
18
- }
19
- };
20
-
21
- exports.bufferTextMapGetter = bufferTextMapGetter;
22
- //# sourceMappingURL=propagator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"propagator.js","sources":["../../../../../../src/integrations/tracing/kafka/vendored/propagator.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\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-kafkajs\n * - Upstream version: @opentelemetry/instrumentation-kafkajs@0.27.0\n */\n/* eslint-disable */\n\nimport type { TextMapGetter } from '@opentelemetry/api';\n\n/*\nsame as open telemetry's `defaultTextMapGetter`,\nbut also handle case where header is buffer,\nadding toString() to make sure string is returned\n*/\nexport const bufferTextMapGetter: TextMapGetter = {\n get(carrier, key) {\n if (!carrier) {\n return undefined;\n }\n\n const keys = Object.keys(carrier);\n\n for (const carrierKey of keys) {\n if (carrierKey === key || carrierKey.toLowerCase() === key) {\n return carrier[carrierKey]?.toString();\n }\n }\n\n return undefined;\n },\n\n keys(carrier) {\n return carrier ? Object.keys(carrier) : [];\n },\n};\n"],"names":[],"mappings":";;AAiBO,MAAM,mBAAA,GAAqC;AAAA,EAChD,GAAA,CAAI,SAAS,GAAA,EAAK;AAChB,IAAA,IAAI,CAAC,OAAA,EAAS;AACZ,MAAA,OAAO,MAAA;AAAA,IACT;AAEA,IAAA,MAAM,IAAA,GAAO,MAAA,CAAO,IAAA,CAAK,OAAO,CAAA;AAEhC,IAAA,KAAA,MAAW,cAAc,IAAA,EAAM;AAC7B,MAAA,IAAI,UAAA,KAAe,GAAA,IAAO,UAAA,CAAW,WAAA,OAAkB,GAAA,EAAK;AAC1D,QAAA,OAAO,OAAA,CAAQ,UAAU,CAAA,EAAG,QAAA,EAAS;AAAA,MACvC;AAAA,IACF;AAEA,IAAA,OAAO,MAAA;AAAA,EACT,CAAA;AAAA,EAEA,KAAK,OAAA,EAAS;AACZ,IAAA,OAAO,OAAA,GAAU,MAAA,CAAO,IAAA,CAAK,OAAO,IAAI,EAAC;AAAA,EAC3C;AACF;;;;"}