@amqp-contract/core 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/index.md +69 -69
- package/package.json +6 -6
package/docs/index.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### AmqpClient
|
|
10
10
|
|
|
11
|
-
Defined in: [packages/core/src/amqp-client.ts:129](https://github.com/btravers/amqp-contract/blob/
|
|
11
|
+
Defined in: [packages/core/src/amqp-client.ts:129](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L129)
|
|
12
12
|
|
|
13
13
|
AMQP client that manages connections and channels with automatic topology setup.
|
|
14
14
|
|
|
@@ -46,7 +46,7 @@ await client.close().resultToPromise();
|
|
|
46
46
|
new AmqpClient(contract, options): AmqpClient;
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Defined in: [packages/core/src/amqp-client.ts:148](https://github.com/btravers/amqp-contract/blob/
|
|
49
|
+
Defined in: [packages/core/src/amqp-client.ts:148](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L148)
|
|
50
50
|
|
|
51
51
|
Create a new AMQP client instance.
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ The client will automatically:
|
|
|
74
74
|
ack(msg, allUpTo?): void;
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
Defined in: [packages/core/src/amqp-client.ts:326](https://github.com/btravers/amqp-contract/blob/
|
|
77
|
+
Defined in: [packages/core/src/amqp-client.ts:326](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L326)
|
|
78
78
|
|
|
79
79
|
Acknowledge a message.
|
|
80
80
|
|
|
@@ -95,7 +95,7 @@ Acknowledge a message.
|
|
|
95
95
|
addSetup(setup): void;
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
Defined in: [packages/core/src/amqp-client.ts:348](https://github.com/btravers/amqp-contract/blob/
|
|
98
|
+
Defined in: [packages/core/src/amqp-client.ts:348](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L348)
|
|
99
99
|
|
|
100
100
|
Add a setup function to be called when the channel is created or reconnected.
|
|
101
101
|
|
|
@@ -117,7 +117,7 @@ This is useful for setting up channel-level configuration like prefetch.
|
|
|
117
117
|
cancel(consumerTag): Future<Result<void, TechnicalError>>;
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
Defined in: [packages/core/src/amqp-client.ts:314](https://github.com/btravers/amqp-contract/blob/
|
|
120
|
+
Defined in: [packages/core/src/amqp-client.ts:314](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L314)
|
|
121
121
|
|
|
122
122
|
Cancel a consumer by its consumer tag.
|
|
123
123
|
|
|
@@ -139,7 +139,7 @@ A Future that resolves when the consumer is cancelled
|
|
|
139
139
|
close(): Future<Result<void, TechnicalError>>;
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
Defined in: [packages/core/src/amqp-client.ts:377](https://github.com/btravers/amqp-contract/blob/
|
|
142
|
+
Defined in: [packages/core/src/amqp-client.ts:377](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L377)
|
|
143
143
|
|
|
144
144
|
Close the channel and release the connection reference.
|
|
145
145
|
|
|
@@ -163,7 +163,7 @@ consume(
|
|
|
163
163
|
options?): Future<Result<string, TechnicalError>>;
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
Defined in: [packages/core/src/amqp-client.ts:298](https://github.com/btravers/amqp-contract/blob/
|
|
166
|
+
Defined in: [packages/core/src/amqp-client.ts:298](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L298)
|
|
167
167
|
|
|
168
168
|
Start consuming messages from a queue.
|
|
169
169
|
|
|
@@ -187,7 +187,7 @@ A Future with `Result<string>` - the consumer tag
|
|
|
187
187
|
getConnection(): IAmqpConnectionManager;
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
Defined in: [packages/core/src/amqp-client.ts:203](https://github.com/btravers/amqp-contract/blob/
|
|
190
|
+
Defined in: [packages/core/src/amqp-client.ts:203](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L203)
|
|
191
191
|
|
|
192
192
|
Get the underlying connection manager
|
|
193
193
|
|
|
@@ -210,7 +210,7 @@ nack(
|
|
|
210
210
|
requeue?): void;
|
|
211
211
|
```
|
|
212
212
|
|
|
213
|
-
Defined in: [packages/core/src/amqp-client.ts:337](https://github.com/btravers/amqp-contract/blob/
|
|
213
|
+
Defined in: [packages/core/src/amqp-client.ts:337](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L337)
|
|
214
214
|
|
|
215
215
|
Negative acknowledge a message.
|
|
216
216
|
|
|
@@ -232,7 +232,7 @@ Negative acknowledge a message.
|
|
|
232
232
|
on(event, listener): void;
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
Defined in: [packages/core/src/amqp-client.ts:363](https://github.com/btravers/amqp-contract/blob/
|
|
235
|
+
Defined in: [packages/core/src/amqp-client.ts:363](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L363)
|
|
236
236
|
|
|
237
237
|
Register an event listener on the channel wrapper.
|
|
238
238
|
|
|
@@ -262,7 +262,7 @@ publish(
|
|
|
262
262
|
options?): Future<Result<boolean, TechnicalError>>;
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
Defined in: [packages/core/src/amqp-client.ts:261](https://github.com/btravers/amqp-contract/blob/
|
|
265
|
+
Defined in: [packages/core/src/amqp-client.ts:261](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L261)
|
|
266
266
|
|
|
267
267
|
Publish a message to an exchange.
|
|
268
268
|
|
|
@@ -290,7 +290,7 @@ sendToQueue(
|
|
|
290
290
|
options?): Future<Result<boolean, TechnicalError>>;
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
Defined in: [packages/core/src/amqp-client.ts:280](https://github.com/btravers/amqp-contract/blob/
|
|
293
|
+
Defined in: [packages/core/src/amqp-client.ts:280](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L280)
|
|
294
294
|
|
|
295
295
|
Publish a message directly to a queue.
|
|
296
296
|
|
|
@@ -314,7 +314,7 @@ A Future with `Result<boolean>` - true if message was sent, false if channel buf
|
|
|
314
314
|
waitForConnect(): Future<Result<void, TechnicalError>>;
|
|
315
315
|
```
|
|
316
316
|
|
|
317
|
-
Defined in: [packages/core/src/amqp-client.ts:224](https://github.com/btravers/amqp-contract/blob/
|
|
317
|
+
Defined in: [packages/core/src/amqp-client.ts:224](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L224)
|
|
318
318
|
|
|
319
319
|
Wait for the channel to be connected and ready.
|
|
320
320
|
|
|
@@ -340,7 +340,7 @@ A Future resolving to `Result.Ok(void)` on connect, or
|
|
|
340
340
|
|
|
341
341
|
### MessageValidationError
|
|
342
342
|
|
|
343
|
-
Defined in: [packages/core/src/errors.ts:33](https://github.com/btravers/amqp-contract/blob/
|
|
343
|
+
Defined in: [packages/core/src/errors.ts:33](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L33)
|
|
344
344
|
|
|
345
345
|
Error thrown when message validation fails (payload or headers).
|
|
346
346
|
|
|
@@ -367,7 +367,7 @@ The validation issues from the Standard Schema validation
|
|
|
367
367
|
new MessageValidationError(source, issues): MessageValidationError;
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
Defined in: [packages/core/src/errors.ts:34](https://github.com/btravers/amqp-contract/blob/
|
|
370
|
+
Defined in: [packages/core/src/errors.ts:34](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L34)
|
|
371
371
|
|
|
372
372
|
###### Parameters
|
|
373
373
|
|
|
@@ -391,10 +391,10 @@ Error.constructor
|
|
|
391
391
|
| Property | Modifier | Type | Description | Inherited from | Defined in |
|
|
392
392
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
393
393
|
| <a id="cause"></a> `cause?` | `public` | `unknown` | - | `Error.cause` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es2022.error.d.ts:24 |
|
|
394
|
-
| <a id="issues"></a> `issues` | `readonly` | `unknown` | - | - | [packages/core/src/errors.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
394
|
+
| <a id="issues"></a> `issues` | `readonly` | `unknown` | - | - | [packages/core/src/errors.ts:36](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L36) |
|
|
395
395
|
| <a id="message"></a> `message` | `public` | `string` | - | `Error.message` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1075 |
|
|
396
396
|
| <a id="name"></a> `name` | `public` | `string` | - | `Error.name` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1074 |
|
|
397
|
-
| <a id="source"></a> `source` | `readonly` | `string` | - | - | [packages/core/src/errors.ts:35](https://github.com/btravers/amqp-contract/blob/
|
|
397
|
+
| <a id="source"></a> `source` | `readonly` | `string` | - | - | [packages/core/src/errors.ts:35](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L35) |
|
|
398
398
|
| <a id="stack"></a> `stack?` | `public` | `string` | - | `Error.stack` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
|
|
399
399
|
| <a id="stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | `Error.stackTraceLimit` | node\_modules/.pnpm/@types+node@25.6.0/node\_modules/@types/node/globals.d.ts:67 |
|
|
400
400
|
|
|
@@ -604,7 +604,7 @@ Error.prepareStackTrace
|
|
|
604
604
|
|
|
605
605
|
### TechnicalError
|
|
606
606
|
|
|
607
|
-
Defined in: [packages/core/src/errors.ts:7](https://github.com/btravers/amqp-contract/blob/
|
|
607
|
+
Defined in: [packages/core/src/errors.ts:7](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L7)
|
|
608
608
|
|
|
609
609
|
Error for technical/runtime failures that cannot be prevented by TypeScript.
|
|
610
610
|
|
|
@@ -623,7 +623,7 @@ and other runtime errors. This error is shared across core, worker, and client p
|
|
|
623
623
|
new TechnicalError(message, cause?): TechnicalError;
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
-
Defined in: [packages/core/src/errors.ts:8](https://github.com/btravers/amqp-contract/blob/
|
|
626
|
+
Defined in: [packages/core/src/errors.ts:8](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L8)
|
|
627
627
|
|
|
628
628
|
###### Parameters
|
|
629
629
|
|
|
@@ -646,7 +646,7 @@ Error.constructor
|
|
|
646
646
|
|
|
647
647
|
| Property | Modifier | Type | Description | Inherited from | Defined in |
|
|
648
648
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
649
|
-
| <a id="cause-1"></a> `cause?` | `readonly` | `unknown` | - | `Error.cause` | [packages/core/src/errors.ts:10](https://github.com/btravers/amqp-contract/blob/
|
|
649
|
+
| <a id="cause-1"></a> `cause?` | `readonly` | `unknown` | - | `Error.cause` | [packages/core/src/errors.ts:10](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/errors.ts#L10) |
|
|
650
650
|
| <a id="message-1"></a> `message` | `public` | `string` | - | `Error.message` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1075 |
|
|
651
651
|
| <a id="name-1"></a> `name` | `public` | `string` | - | `Error.name` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1074 |
|
|
652
652
|
| <a id="stack-1"></a> `stack?` | `public` | `string` | - | `Error.stack` | node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
|
|
@@ -862,7 +862,7 @@ Error.prepareStackTrace
|
|
|
862
862
|
type AmqpClientOptions = object;
|
|
863
863
|
```
|
|
864
864
|
|
|
865
|
-
Defined in: [packages/core/src/amqp-client.ts:73](https://github.com/btravers/amqp-contract/blob/
|
|
865
|
+
Defined in: [packages/core/src/amqp-client.ts:73](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L73)
|
|
866
866
|
|
|
867
867
|
Options for creating an AMQP client.
|
|
868
868
|
|
|
@@ -870,10 +870,10 @@ Options for creating an AMQP client.
|
|
|
870
870
|
|
|
871
871
|
| Property | Type | Description | Defined in |
|
|
872
872
|
| ------ | ------ | ------ | ------ |
|
|
873
|
-
| <a id="channeloptions"></a> `channelOptions?` | `Partial`<`CreateChannelOpts`> | Optional channel configuration options. | [packages/core/src/amqp-client.ts:76](https://github.com/btravers/amqp-contract/blob/
|
|
874
|
-
| <a id="connectionoptions"></a> `connectionOptions?` | `AmqpConnectionManagerOptions` | Optional connection configuration (heartbeat, reconnect settings, etc.). | [packages/core/src/amqp-client.ts:75](https://github.com/btravers/amqp-contract/blob/
|
|
875
|
-
| <a id="connecttimeoutms"></a> `connectTimeoutMs?` | `number` \| `null` | Maximum time in ms to wait for the channel to become ready in `waitForConnect`. Defaults to [DEFAULT\_CONNECT\_TIMEOUT\_MS](#default_connect_timeout_ms). Pass `null` to disable the timeout entirely (amqp-connection-manager will retry indefinitely). | [packages/core/src/amqp-client.ts:77](https://github.com/btravers/amqp-contract/blob/
|
|
876
|
-
| <a id="urls"></a> `urls` | `ConnectionUrl`[] | AMQP broker URL(s). Multiple URLs provide failover support. | [packages/core/src/amqp-client.ts:74](https://github.com/btravers/amqp-contract/blob/
|
|
873
|
+
| <a id="channeloptions"></a> `channelOptions?` | `Partial`<`CreateChannelOpts`> | Optional channel configuration options. | [packages/core/src/amqp-client.ts:76](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L76) |
|
|
874
|
+
| <a id="connectionoptions"></a> `connectionOptions?` | `AmqpConnectionManagerOptions` | Optional connection configuration (heartbeat, reconnect settings, etc.). | [packages/core/src/amqp-client.ts:75](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L75) |
|
|
875
|
+
| <a id="connecttimeoutms"></a> `connectTimeoutMs?` | `number` \| `null` | Maximum time in ms to wait for the channel to become ready in `waitForConnect`. Defaults to [DEFAULT\_CONNECT\_TIMEOUT\_MS](#default_connect_timeout_ms). Pass `null` to disable the timeout entirely (amqp-connection-manager will retry indefinitely). | [packages/core/src/amqp-client.ts:77](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L77) |
|
|
876
|
+
| <a id="urls"></a> `urls` | `ConnectionUrl`[] | AMQP broker URL(s). Multiple URLs provide failover support. | [packages/core/src/amqp-client.ts:74](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L74) |
|
|
877
877
|
|
|
878
878
|
***
|
|
879
879
|
|
|
@@ -883,7 +883,7 @@ Options for creating an AMQP client.
|
|
|
883
883
|
type ConsumeCallback = (msg) => void | Promise<void>;
|
|
884
884
|
```
|
|
885
885
|
|
|
886
|
-
Defined in: [packages/core/src/amqp-client.ts:83](https://github.com/btravers/amqp-contract/blob/
|
|
886
|
+
Defined in: [packages/core/src/amqp-client.ts:83](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L83)
|
|
887
887
|
|
|
888
888
|
Callback type for consuming messages.
|
|
889
889
|
|
|
@@ -905,7 +905,7 @@ Callback type for consuming messages.
|
|
|
905
905
|
type ConsumerOptions = Options.Consume & object;
|
|
906
906
|
```
|
|
907
907
|
|
|
908
|
-
Defined in: [packages/core/src/amqp-client.ts:96](https://github.com/btravers/amqp-contract/blob/
|
|
908
|
+
Defined in: [packages/core/src/amqp-client.ts:96](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L96)
|
|
909
909
|
|
|
910
910
|
Consume options that extend amqplib's Options.Consume with optional prefetch support.
|
|
911
911
|
|
|
@@ -913,7 +913,7 @@ Consume options that extend amqplib's Options.Consume with optional prefetch sup
|
|
|
913
913
|
|
|
914
914
|
| Name | Type | Description | Defined in |
|
|
915
915
|
| ------ | ------ | ------ | ------ |
|
|
916
|
-
| `prefetch?` | `number` | Number of messages to prefetch | [packages/core/src/amqp-client.ts:98](https://github.com/btravers/amqp-contract/blob/
|
|
916
|
+
| `prefetch?` | `number` | Number of messages to prefetch | [packages/core/src/amqp-client.ts:98](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L98) |
|
|
917
917
|
|
|
918
918
|
***
|
|
919
919
|
|
|
@@ -923,7 +923,7 @@ Consume options that extend amqplib's Options.Consume with optional prefetch sup
|
|
|
923
923
|
type Logger = object;
|
|
924
924
|
```
|
|
925
925
|
|
|
926
|
-
Defined in: [packages/core/src/logger.ts:30](https://github.com/btravers/amqp-contract/blob/
|
|
926
|
+
Defined in: [packages/core/src/logger.ts:30](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L30)
|
|
927
927
|
|
|
928
928
|
Logger interface for amqp-contract packages.
|
|
929
929
|
|
|
@@ -950,7 +950,7 @@ const logger: Logger = {
|
|
|
950
950
|
debug(message, context?): void;
|
|
951
951
|
```
|
|
952
952
|
|
|
953
|
-
Defined in: [packages/core/src/logger.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
953
|
+
Defined in: [packages/core/src/logger.ts:36](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L36)
|
|
954
954
|
|
|
955
955
|
Log debug level messages
|
|
956
956
|
|
|
@@ -971,7 +971,7 @@ Log debug level messages
|
|
|
971
971
|
error(message, context?): void;
|
|
972
972
|
```
|
|
973
973
|
|
|
974
|
-
Defined in: [packages/core/src/logger.ts:57](https://github.com/btravers/amqp-contract/blob/
|
|
974
|
+
Defined in: [packages/core/src/logger.ts:57](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L57)
|
|
975
975
|
|
|
976
976
|
Log error level messages
|
|
977
977
|
|
|
@@ -992,7 +992,7 @@ Log error level messages
|
|
|
992
992
|
info(message, context?): void;
|
|
993
993
|
```
|
|
994
994
|
|
|
995
|
-
Defined in: [packages/core/src/logger.ts:43](https://github.com/btravers/amqp-contract/blob/
|
|
995
|
+
Defined in: [packages/core/src/logger.ts:43](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L43)
|
|
996
996
|
|
|
997
997
|
Log info level messages
|
|
998
998
|
|
|
@@ -1013,7 +1013,7 @@ Log info level messages
|
|
|
1013
1013
|
warn(message, context?): void;
|
|
1014
1014
|
```
|
|
1015
1015
|
|
|
1016
|
-
Defined in: [packages/core/src/logger.ts:50](https://github.com/btravers/amqp-contract/blob/
|
|
1016
|
+
Defined in: [packages/core/src/logger.ts:50](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L50)
|
|
1017
1017
|
|
|
1018
1018
|
Log warning level messages
|
|
1019
1019
|
|
|
@@ -1036,7 +1036,7 @@ Log warning level messages
|
|
|
1036
1036
|
type LoggerContext = Record<string, unknown> & object;
|
|
1037
1037
|
```
|
|
1038
1038
|
|
|
1039
|
-
Defined in: [packages/core/src/logger.ts:9](https://github.com/btravers/amqp-contract/blob/
|
|
1039
|
+
Defined in: [packages/core/src/logger.ts:9](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L9)
|
|
1040
1040
|
|
|
1041
1041
|
Context object for logger methods.
|
|
1042
1042
|
|
|
@@ -1047,7 +1047,7 @@ for common logging context properties.
|
|
|
1047
1047
|
|
|
1048
1048
|
| Name | Type | Defined in |
|
|
1049
1049
|
| ------ | ------ | ------ |
|
|
1050
|
-
| `error?` | `unknown` | [packages/core/src/logger.ts:10](https://github.com/btravers/amqp-contract/blob/
|
|
1050
|
+
| `error?` | `unknown` | [packages/core/src/logger.ts:10](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/logger.ts#L10) |
|
|
1051
1051
|
|
|
1052
1052
|
***
|
|
1053
1053
|
|
|
@@ -1057,7 +1057,7 @@ for common logging context properties.
|
|
|
1057
1057
|
type PublishOptions = Options.Publish & object;
|
|
1058
1058
|
```
|
|
1059
1059
|
|
|
1060
|
-
Defined in: [packages/core/src/amqp-client.ts:88](https://github.com/btravers/amqp-contract/blob/
|
|
1060
|
+
Defined in: [packages/core/src/amqp-client.ts:88](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L88)
|
|
1061
1061
|
|
|
1062
1062
|
Publish options that extend amqplib's Options.Publish with optional timeout support.
|
|
1063
1063
|
|
|
@@ -1065,7 +1065,7 @@ Publish options that extend amqplib's Options.Publish with optional timeout supp
|
|
|
1065
1065
|
|
|
1066
1066
|
| Name | Type | Description | Defined in |
|
|
1067
1067
|
| ------ | ------ | ------ | ------ |
|
|
1068
|
-
| `timeout?` | `number` | Message will be rejected after timeout ms | [packages/core/src/amqp-client.ts:90](https://github.com/btravers/amqp-contract/blob/
|
|
1068
|
+
| `timeout?` | `number` | Message will be rejected after timeout ms | [packages/core/src/amqp-client.ts:90](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L90) |
|
|
1069
1069
|
|
|
1070
1070
|
***
|
|
1071
1071
|
|
|
@@ -1075,7 +1075,7 @@ Publish options that extend amqplib's Options.Publish with optional timeout supp
|
|
|
1075
1075
|
type TelemetryProvider = object;
|
|
1076
1076
|
```
|
|
1077
1077
|
|
|
1078
|
-
Defined in: [packages/core/src/telemetry.ts:54](https://github.com/btravers/amqp-contract/blob/
|
|
1078
|
+
Defined in: [packages/core/src/telemetry.ts:54](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L54)
|
|
1079
1079
|
|
|
1080
1080
|
Telemetry provider for AMQP operations.
|
|
1081
1081
|
Uses lazy loading to gracefully handle cases where OpenTelemetry is not installed.
|
|
@@ -1084,12 +1084,12 @@ Uses lazy loading to gracefully handle cases where OpenTelemetry is not installe
|
|
|
1084
1084
|
|
|
1085
1085
|
| Property | Type | Description | Defined in |
|
|
1086
1086
|
| ------ | ------ | ------ | ------ |
|
|
1087
|
-
| <a id="getconsumecounter"></a> `getConsumeCounter` | () => `Counter` \| `undefined` | Get a counter for messages consumed. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:71](https://github.com/btravers/amqp-contract/blob/
|
|
1088
|
-
| <a id="getconsumelatencyhistogram"></a> `getConsumeLatencyHistogram` | () => `Histogram` \| `undefined` | Get a histogram for consume/process latency. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:83](https://github.com/btravers/amqp-contract/blob/
|
|
1089
|
-
| <a id="getlaterpcreplycounter"></a> `getLateRpcReplyCounter` | () => `Counter` \| `undefined` | Get a counter for RPC replies that arrive after the caller has gone away (timeout, cancellation, or unknown correlationId). Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:90](https://github.com/btravers/amqp-contract/blob/
|
|
1090
|
-
| <a id="getpublishcounter"></a> `getPublishCounter` | () => `Counter` \| `undefined` | Get a counter for messages published. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:65](https://github.com/btravers/amqp-contract/blob/
|
|
1091
|
-
| <a id="getpublishlatencyhistogram"></a> `getPublishLatencyHistogram` | () => `Histogram` \| `undefined` | Get a histogram for publish latency. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:77](https://github.com/btravers/amqp-contract/blob/
|
|
1092
|
-
| <a id="gettracer"></a> `getTracer` | () => `Tracer` \| `undefined` | Get a tracer instance for creating spans. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:59](https://github.com/btravers/amqp-contract/blob/
|
|
1087
|
+
| <a id="getconsumecounter"></a> `getConsumeCounter` | () => `Counter` \| `undefined` | Get a counter for messages consumed. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:71](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L71) |
|
|
1088
|
+
| <a id="getconsumelatencyhistogram"></a> `getConsumeLatencyHistogram` | () => `Histogram` \| `undefined` | Get a histogram for consume/process latency. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:83](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L83) |
|
|
1089
|
+
| <a id="getlaterpcreplycounter"></a> `getLateRpcReplyCounter` | () => `Counter` \| `undefined` | Get a counter for RPC replies that arrive after the caller has gone away (timeout, cancellation, or unknown correlationId). Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:90](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L90) |
|
|
1090
|
+
| <a id="getpublishcounter"></a> `getPublishCounter` | () => `Counter` \| `undefined` | Get a counter for messages published. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:65](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L65) |
|
|
1091
|
+
| <a id="getpublishlatencyhistogram"></a> `getPublishLatencyHistogram` | () => `Histogram` \| `undefined` | Get a histogram for publish latency. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:77](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L77) |
|
|
1092
|
+
| <a id="gettracer"></a> `getTracer` | () => `Tracer` \| `undefined` | Get a tracer instance for creating spans. Returns undefined if OpenTelemetry is not available. | [packages/core/src/telemetry.ts:59](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L59) |
|
|
1093
1093
|
|
|
1094
1094
|
## Variables
|
|
1095
1095
|
|
|
@@ -1099,7 +1099,7 @@ Uses lazy loading to gracefully handle cases where OpenTelemetry is not installe
|
|
|
1099
1099
|
const DEFAULT_CONNECT_TIMEOUT_MS: 30000 = 30_000;
|
|
1100
1100
|
```
|
|
1101
1101
|
|
|
1102
|
-
Defined in: [packages/core/src/amqp-client.ts:47](https://github.com/btravers/amqp-contract/blob/
|
|
1102
|
+
Defined in: [packages/core/src/amqp-client.ts:47](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/amqp-client.ts#L47)
|
|
1103
1103
|
|
|
1104
1104
|
Default time `waitForConnect` will wait for the broker before erroring out.
|
|
1105
1105
|
Defaulting to a finite value (rather than waiting forever) means a fail-fast
|
|
@@ -1117,7 +1117,7 @@ delays to ~24.8 days and silently fires near-immediately on `Infinity`.
|
|
|
1117
1117
|
const defaultTelemetryProvider: TelemetryProvider;
|
|
1118
1118
|
```
|
|
1119
1119
|
|
|
1120
|
-
Defined in: [packages/core/src/telemetry.ts:229](https://github.com/btravers/amqp-contract/blob/
|
|
1120
|
+
Defined in: [packages/core/src/telemetry.ts:229](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L229)
|
|
1121
1121
|
|
|
1122
1122
|
Default telemetry provider that uses OpenTelemetry API if available.
|
|
1123
1123
|
|
|
@@ -1129,7 +1129,7 @@ Default telemetry provider that uses OpenTelemetry API if available.
|
|
|
1129
1129
|
const MessagingSemanticConventions: object;
|
|
1130
1130
|
```
|
|
1131
1131
|
|
|
1132
|
-
Defined in: [packages/core/src/telemetry.ts:26](https://github.com/btravers/amqp-contract/blob/
|
|
1132
|
+
Defined in: [packages/core/src/telemetry.ts:26](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L26)
|
|
1133
1133
|
|
|
1134
1134
|
Semantic conventions for AMQP messaging following OpenTelemetry standards.
|
|
1135
1135
|
|
|
@@ -1137,20 +1137,20 @@ Semantic conventions for AMQP messaging following OpenTelemetry standards.
|
|
|
1137
1137
|
|
|
1138
1138
|
| Name | Type | Default value | Defined in |
|
|
1139
1139
|
| ------ | ------ | ------ | ------ |
|
|
1140
|
-
| <a id="property-amqp_consumer_name"></a> `AMQP_CONSUMER_NAME` | `"amqp.consumer.name"` | `"amqp.consumer.name"` | [packages/core/src/telemetry.ts:37](https://github.com/btravers/amqp-contract/blob/
|
|
1141
|
-
| <a id="property-amqp_publisher_name"></a> `AMQP_PUBLISHER_NAME` | `"amqp.publisher.name"` | `"amqp.publisher.name"` | [packages/core/src/telemetry.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
1142
|
-
| <a id="property-error_type"></a> `ERROR_TYPE` | `"error.type"` | `"error.type"` | [packages/core/src/telemetry.ts:40](https://github.com/btravers/amqp-contract/blob/
|
|
1143
|
-
| <a id="property-messaging_destination"></a> `MESSAGING_DESTINATION` | `"messaging.destination.name"` | `"messaging.destination.name"` | [packages/core/src/telemetry.ts:29](https://github.com/btravers/amqp-contract/blob/
|
|
1144
|
-
| <a id="property-messaging_destination_kind"></a> `MESSAGING_DESTINATION_KIND` | `"messaging.destination.kind"` | `"messaging.destination.kind"` | [packages/core/src/telemetry.ts:30](https://github.com/btravers/amqp-contract/blob/
|
|
1145
|
-
| <a id="property-messaging_destination_kind_exchange"></a> `MESSAGING_DESTINATION_KIND_EXCHANGE` | `"exchange"` | `"exchange"` | [packages/core/src/telemetry.ts:44](https://github.com/btravers/amqp-contract/blob/
|
|
1146
|
-
| <a id="property-messaging_destination_kind_queue"></a> `MESSAGING_DESTINATION_KIND_QUEUE` | `"queue"` | `"queue"` | [packages/core/src/telemetry.ts:45](https://github.com/btravers/amqp-contract/blob/
|
|
1147
|
-
| <a id="property-messaging_operation"></a> `MESSAGING_OPERATION` | `"messaging.operation"` | `"messaging.operation"` | [packages/core/src/telemetry.ts:31](https://github.com/btravers/amqp-contract/blob/
|
|
1148
|
-
| <a id="property-messaging_operation_process"></a> `MESSAGING_OPERATION_PROCESS` | `"process"` | `"process"` | [packages/core/src/telemetry.ts:47](https://github.com/btravers/amqp-contract/blob/
|
|
1149
|
-
| <a id="property-messaging_operation_publish"></a> `MESSAGING_OPERATION_PUBLISH` | `"publish"` | `"publish"` | [packages/core/src/telemetry.ts:46](https://github.com/btravers/amqp-contract/blob/
|
|
1150
|
-
| <a id="property-messaging_rabbitmq_message_delivery_tag"></a> `MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG` | `"messaging.rabbitmq.message.delivery_tag"` | `"messaging.rabbitmq.message.delivery_tag"` | [packages/core/src/telemetry.ts:35](https://github.com/btravers/amqp-contract/blob/
|
|
1151
|
-
| <a id="property-messaging_rabbitmq_routing_key"></a> `MESSAGING_RABBITMQ_ROUTING_KEY` | `"messaging.rabbitmq.destination.routing_key"` | `"messaging.rabbitmq.destination.routing_key"` | [packages/core/src/telemetry.ts:34](https://github.com/btravers/amqp-contract/blob/
|
|
1152
|
-
| <a id="property-messaging_system"></a> `MESSAGING_SYSTEM` | `"messaging.system"` | `"messaging.system"` | [packages/core/src/telemetry.ts:28](https://github.com/btravers/amqp-contract/blob/
|
|
1153
|
-
| <a id="property-messaging_system_rabbitmq"></a> `MESSAGING_SYSTEM_RABBITMQ` | `"rabbitmq"` | `"rabbitmq"` | [packages/core/src/telemetry.ts:43](https://github.com/btravers/amqp-contract/blob/
|
|
1140
|
+
| <a id="property-amqp_consumer_name"></a> `AMQP_CONSUMER_NAME` | `"amqp.consumer.name"` | `"amqp.consumer.name"` | [packages/core/src/telemetry.ts:37](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L37) |
|
|
1141
|
+
| <a id="property-amqp_publisher_name"></a> `AMQP_PUBLISHER_NAME` | `"amqp.publisher.name"` | `"amqp.publisher.name"` | [packages/core/src/telemetry.ts:36](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L36) |
|
|
1142
|
+
| <a id="property-error_type"></a> `ERROR_TYPE` | `"error.type"` | `"error.type"` | [packages/core/src/telemetry.ts:40](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L40) |
|
|
1143
|
+
| <a id="property-messaging_destination"></a> `MESSAGING_DESTINATION` | `"messaging.destination.name"` | `"messaging.destination.name"` | [packages/core/src/telemetry.ts:29](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L29) |
|
|
1144
|
+
| <a id="property-messaging_destination_kind"></a> `MESSAGING_DESTINATION_KIND` | `"messaging.destination.kind"` | `"messaging.destination.kind"` | [packages/core/src/telemetry.ts:30](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L30) |
|
|
1145
|
+
| <a id="property-messaging_destination_kind_exchange"></a> `MESSAGING_DESTINATION_KIND_EXCHANGE` | `"exchange"` | `"exchange"` | [packages/core/src/telemetry.ts:44](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L44) |
|
|
1146
|
+
| <a id="property-messaging_destination_kind_queue"></a> `MESSAGING_DESTINATION_KIND_QUEUE` | `"queue"` | `"queue"` | [packages/core/src/telemetry.ts:45](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L45) |
|
|
1147
|
+
| <a id="property-messaging_operation"></a> `MESSAGING_OPERATION` | `"messaging.operation"` | `"messaging.operation"` | [packages/core/src/telemetry.ts:31](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L31) |
|
|
1148
|
+
| <a id="property-messaging_operation_process"></a> `MESSAGING_OPERATION_PROCESS` | `"process"` | `"process"` | [packages/core/src/telemetry.ts:47](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L47) |
|
|
1149
|
+
| <a id="property-messaging_operation_publish"></a> `MESSAGING_OPERATION_PUBLISH` | `"publish"` | `"publish"` | [packages/core/src/telemetry.ts:46](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L46) |
|
|
1150
|
+
| <a id="property-messaging_rabbitmq_message_delivery_tag"></a> `MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG` | `"messaging.rabbitmq.message.delivery_tag"` | `"messaging.rabbitmq.message.delivery_tag"` | [packages/core/src/telemetry.ts:35](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L35) |
|
|
1151
|
+
| <a id="property-messaging_rabbitmq_routing_key"></a> `MESSAGING_RABBITMQ_ROUTING_KEY` | `"messaging.rabbitmq.destination.routing_key"` | `"messaging.rabbitmq.destination.routing_key"` | [packages/core/src/telemetry.ts:34](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L34) |
|
|
1152
|
+
| <a id="property-messaging_system"></a> `MESSAGING_SYSTEM` | `"messaging.system"` | `"messaging.system"` | [packages/core/src/telemetry.ts:28](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L28) |
|
|
1153
|
+
| <a id="property-messaging_system_rabbitmq"></a> `MESSAGING_SYSTEM_RABBITMQ` | `"rabbitmq"` | `"rabbitmq"` | [packages/core/src/telemetry.ts:43](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L43) |
|
|
1154
1154
|
|
|
1155
1155
|
#### See
|
|
1156
1156
|
|
|
@@ -1164,7 +1164,7 @@ https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/
|
|
|
1164
1164
|
function endSpanError(span, error): void;
|
|
1165
1165
|
```
|
|
1166
1166
|
|
|
1167
|
-
Defined in: [packages/core/src/telemetry.ts:324](https://github.com/btravers/amqp-contract/blob/
|
|
1167
|
+
Defined in: [packages/core/src/telemetry.ts:324](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L324)
|
|
1168
1168
|
|
|
1169
1169
|
End a span with error status.
|
|
1170
1170
|
|
|
@@ -1187,7 +1187,7 @@ End a span with error status.
|
|
|
1187
1187
|
function endSpanSuccess(span): void;
|
|
1188
1188
|
```
|
|
1189
1189
|
|
|
1190
|
-
Defined in: [packages/core/src/telemetry.ts:309](https://github.com/btravers/amqp-contract/blob/
|
|
1190
|
+
Defined in: [packages/core/src/telemetry.ts:309](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L309)
|
|
1191
1191
|
|
|
1192
1192
|
End a span with success status.
|
|
1193
1193
|
|
|
@@ -1214,7 +1214,7 @@ function recordConsumeMetric(
|
|
|
1214
1214
|
durationMs): void;
|
|
1215
1215
|
```
|
|
1216
1216
|
|
|
1217
|
-
Defined in: [packages/core/src/telemetry.ts:368](https://github.com/btravers/amqp-contract/blob/
|
|
1217
|
+
Defined in: [packages/core/src/telemetry.ts:368](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L368)
|
|
1218
1218
|
|
|
1219
1219
|
Record a consume metric.
|
|
1220
1220
|
|
|
@@ -1240,7 +1240,7 @@ Record a consume metric.
|
|
|
1240
1240
|
function recordLateRpcReply(provider, reason): void;
|
|
1241
1241
|
```
|
|
1242
1242
|
|
|
1243
|
-
Defined in: [packages/core/src/telemetry.ts:398](https://github.com/btravers/amqp-contract/blob/
|
|
1243
|
+
Defined in: [packages/core/src/telemetry.ts:398](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L398)
|
|
1244
1244
|
|
|
1245
1245
|
Record an RPC reply that arrived after the caller stopped waiting.
|
|
1246
1246
|
|
|
@@ -1268,7 +1268,7 @@ function recordPublishMetric(
|
|
|
1268
1268
|
durationMs): void;
|
|
1269
1269
|
```
|
|
1270
1270
|
|
|
1271
|
-
Defined in: [packages/core/src/telemetry.ts:341](https://github.com/btravers/amqp-contract/blob/
|
|
1271
|
+
Defined in: [packages/core/src/telemetry.ts:341](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L341)
|
|
1272
1272
|
|
|
1273
1273
|
Record a publish metric.
|
|
1274
1274
|
|
|
@@ -1294,7 +1294,7 @@ Record a publish metric.
|
|
|
1294
1294
|
function setupAmqpTopology(channel, contract): Promise<void>;
|
|
1295
1295
|
```
|
|
1296
1296
|
|
|
1297
|
-
Defined in: [packages/core/src/setup.ts:26](https://github.com/btravers/amqp-contract/blob/
|
|
1297
|
+
Defined in: [packages/core/src/setup.ts:26](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/setup.ts#L26)
|
|
1298
1298
|
|
|
1299
1299
|
Setup AMQP topology (exchanges, queues, and bindings) from a contract definition.
|
|
1300
1300
|
|
|
@@ -1342,7 +1342,7 @@ function startConsumeSpan(
|
|
|
1342
1342
|
attributes?): Span | undefined;
|
|
1343
1343
|
```
|
|
1344
1344
|
|
|
1345
|
-
Defined in: [packages/core/src/telemetry.ts:277](https://github.com/btravers/amqp-contract/blob/
|
|
1345
|
+
Defined in: [packages/core/src/telemetry.ts:277](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L277)
|
|
1346
1346
|
|
|
1347
1347
|
Create a span for a consume/process operation.
|
|
1348
1348
|
Returns undefined if OpenTelemetry is not available.
|
|
@@ -1372,7 +1372,7 @@ function startPublishSpan(
|
|
|
1372
1372
|
attributes?): Span | undefined;
|
|
1373
1373
|
```
|
|
1374
1374
|
|
|
1375
|
-
Defined in: [packages/core/src/telemetry.ts:242](https://github.com/btravers/amqp-contract/blob/
|
|
1375
|
+
Defined in: [packages/core/src/telemetry.ts:242](https://github.com/btravers/amqp-contract/blob/dc096282cd7249a6b8148d35c3dfad011c9e9753/packages/core/src/telemetry.ts#L242)
|
|
1376
1376
|
|
|
1377
1377
|
Create a span for a publish operation.
|
|
1378
1378
|
Returns undefined if OpenTelemetry is not available.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amqp-contract/core",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Core utilities for AMQP setup and management in amqp-contract",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"amqp",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@swan-io/boxed": "3.2.1",
|
|
54
54
|
"amqp-connection-manager": "5.0.0",
|
|
55
|
-
"amqplib": "
|
|
56
|
-
"@amqp-contract/contract": "0.23.
|
|
55
|
+
"amqplib": "0.10.9",
|
|
56
|
+
"@amqp-contract/contract": "0.23.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@opentelemetry/api": "1.9.1",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"typedoc": "0.28.19",
|
|
64
64
|
"typescript": "6.0.3",
|
|
65
65
|
"vitest": "4.1.5",
|
|
66
|
-
"zod": "4.3
|
|
67
|
-
"@amqp-contract/testing": "0.23.0",
|
|
66
|
+
"zod": "4.4.3",
|
|
68
67
|
"@amqp-contract/tsconfig": "0.1.0",
|
|
69
|
-
"@amqp-contract/typedoc": "0.1.0"
|
|
68
|
+
"@amqp-contract/typedoc": "0.1.0",
|
|
69
|
+
"@amqp-contract/testing": "0.23.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@opentelemetry/api": "^1.0.0"
|