@amqp-contract/core 0.19.0 → 0.20.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.
- package/docs/index.md +70 -70
- package/package.json +4 -4
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:84](https://github.com/btravers/amqp-contract/blob/
|
|
11
|
+
Defined in: [packages/core/src/amqp-client.ts:84](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L84)
|
|
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:101](https://github.com/btravers/amqp-contract/blob/
|
|
49
|
+
Defined in: [packages/core/src/amqp-client.ts:101](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L101)
|
|
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:219](https://github.com/btravers/amqp-contract/blob/
|
|
77
|
+
Defined in: [packages/core/src/amqp-client.ts:219](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L219)
|
|
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:241](https://github.com/btravers/amqp-contract/blob/
|
|
98
|
+
Defined in: [packages/core/src/amqp-client.ts:241](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L241)
|
|
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:207](https://github.com/btravers/amqp-contract/blob/
|
|
120
|
+
Defined in: [packages/core/src/amqp-client.ts:207](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L207)
|
|
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:270](https://github.com/btravers/amqp-contract/blob/
|
|
142
|
+
Defined in: [packages/core/src/amqp-client.ts:270](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L270)
|
|
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:191](https://github.com/btravers/amqp-contract/blob/
|
|
166
|
+
Defined in: [packages/core/src/amqp-client.ts:191](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L191)
|
|
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:148](https://github.com/btravers/amqp-contract/blob/
|
|
190
|
+
Defined in: [packages/core/src/amqp-client.ts:148](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L148)
|
|
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:230](https://github.com/btravers/amqp-contract/blob/
|
|
213
|
+
Defined in: [packages/core/src/amqp-client.ts:230](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L230)
|
|
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:256](https://github.com/btravers/amqp-contract/blob/
|
|
235
|
+
Defined in: [packages/core/src/amqp-client.ts:256](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L256)
|
|
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:172](https://github.com/btravers/amqp-contract/blob/
|
|
265
|
+
Defined in: [packages/core/src/amqp-client.ts:172](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L172)
|
|
266
266
|
|
|
267
267
|
Publish a message to an exchange.
|
|
268
268
|
|
|
@@ -287,7 +287,7 @@ A Future with `Result<boolean>` - true if message was sent, false if channel buf
|
|
|
287
287
|
waitForConnect(): Future<Result<void, TechnicalError>>;
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
-
Defined in: [packages/core/src/amqp-client.ts:157](https://github.com/btravers/amqp-contract/blob/
|
|
290
|
+
Defined in: [packages/core/src/amqp-client.ts:157](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L157)
|
|
291
291
|
|
|
292
292
|
Wait for the channel to be connected and ready.
|
|
293
293
|
|
|
@@ -301,7 +301,7 @@ A Future that resolves when the channel is connected
|
|
|
301
301
|
|
|
302
302
|
### ConnectionManagerSingleton
|
|
303
303
|
|
|
304
|
-
Defined in: [packages/core/src/connection-manager.ts:23](https://github.com/btravers/amqp-contract/blob/
|
|
304
|
+
Defined in: [packages/core/src/connection-manager.ts:23](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/connection-manager.ts#L23)
|
|
305
305
|
|
|
306
306
|
Connection manager singleton for sharing AMQP connections across clients.
|
|
307
307
|
|
|
@@ -327,7 +327,7 @@ await manager.releaseConnection(['amqp://localhost']);
|
|
|
327
327
|
getConnection(urls, connectionOptions?): IAmqpConnectionManager;
|
|
328
328
|
```
|
|
329
329
|
|
|
330
|
-
Defined in: [packages/core/src/connection-manager.ts:52](https://github.com/btravers/amqp-contract/blob/
|
|
330
|
+
Defined in: [packages/core/src/connection-manager.ts:52](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/connection-manager.ts#L52)
|
|
331
331
|
|
|
332
332
|
Get or create a connection for the given URLs and options.
|
|
333
333
|
|
|
@@ -353,7 +353,7 @@ The AMQP connection manager instance
|
|
|
353
353
|
releaseConnection(urls, connectionOptions?): Promise<void>;
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
-
Defined in: [packages/core/src/connection-manager.ts:81](https://github.com/btravers/amqp-contract/blob/
|
|
356
|
+
Defined in: [packages/core/src/connection-manager.ts:81](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/connection-manager.ts#L81)
|
|
357
357
|
|
|
358
358
|
Release a connection reference.
|
|
359
359
|
|
|
@@ -379,7 +379,7 @@ A promise that resolves when the connection is released (and closed if necessary
|
|
|
379
379
|
static getInstance(): ConnectionManagerSingleton;
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
-
Defined in: [packages/core/src/connection-manager.ts:35](https://github.com/btravers/amqp-contract/blob/
|
|
382
|
+
Defined in: [packages/core/src/connection-manager.ts:35](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/connection-manager.ts#L35)
|
|
383
383
|
|
|
384
384
|
Get the singleton instance of the connection manager.
|
|
385
385
|
|
|
@@ -393,7 +393,7 @@ The singleton instance
|
|
|
393
393
|
|
|
394
394
|
### MessageValidationError
|
|
395
395
|
|
|
396
|
-
Defined in: [packages/core/src/errors.ts:33](https://github.com/btravers/amqp-contract/blob/
|
|
396
|
+
Defined in: [packages/core/src/errors.ts:33](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L33)
|
|
397
397
|
|
|
398
398
|
Error thrown when message validation fails (payload or headers).
|
|
399
399
|
|
|
@@ -420,7 +420,7 @@ The validation issues from the Standard Schema validation
|
|
|
420
420
|
new MessageValidationError(source, issues): MessageValidationError;
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
-
Defined in: [packages/core/src/errors.ts:34](https://github.com/btravers/amqp-contract/blob/
|
|
423
|
+
Defined in: [packages/core/src/errors.ts:34](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L34)
|
|
424
424
|
|
|
425
425
|
###### Parameters
|
|
426
426
|
|
|
@@ -444,12 +444,12 @@ Error.constructor
|
|
|
444
444
|
| Property | Modifier | Type | Description | Inherited from | Defined in |
|
|
445
445
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
446
446
|
| <a id="cause"></a> `cause?` | `public` | `unknown` | - | `Error.cause` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es2022.error.d.ts:26 |
|
|
447
|
-
| <a id="issues"></a> `issues` | `readonly` | `unknown` | - | - | [packages/core/src/errors.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
447
|
+
| <a id="issues"></a> `issues` | `readonly` | `unknown` | - | - | [packages/core/src/errors.ts:36](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L36) |
|
|
448
448
|
| <a id="message"></a> `message` | `public` | `string` | - | `Error.message` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1077 |
|
|
449
449
|
| <a id="name"></a> `name` | `public` | `string` | - | `Error.name` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
|
|
450
|
-
| <a id="source"></a> `source` | `readonly` | `string` | - | - | [packages/core/src/errors.ts:35](https://github.com/btravers/amqp-contract/blob/
|
|
450
|
+
| <a id="source"></a> `source` | `readonly` | `string` | - | - | [packages/core/src/errors.ts:35](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L35) |
|
|
451
451
|
| <a id="stack"></a> `stack?` | `public` | `string` | - | `Error.stack` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1078 |
|
|
452
|
-
| <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.
|
|
452
|
+
| <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.3.0/node\_modules/@types/node/globals.d.ts:67 |
|
|
453
453
|
|
|
454
454
|
#### Methods
|
|
455
455
|
|
|
@@ -459,7 +459,7 @@ Error.constructor
|
|
|
459
459
|
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
460
460
|
```
|
|
461
461
|
|
|
462
|
-
Defined in: node\_modules/.pnpm/@types+node@25.
|
|
462
|
+
Defined in: node\_modules/.pnpm/@types+node@25.3.0/node\_modules/@types/node/globals.d.ts:51
|
|
463
463
|
|
|
464
464
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
465
465
|
a string representing the location in the code at which
|
|
@@ -528,7 +528,7 @@ Error.captureStackTrace
|
|
|
528
528
|
static prepareStackTrace(err, stackTraces): any;
|
|
529
529
|
```
|
|
530
530
|
|
|
531
|
-
Defined in: node\_modules/.pnpm/@types+node@25.
|
|
531
|
+
Defined in: node\_modules/.pnpm/@types+node@25.3.0/node\_modules/@types/node/globals.d.ts:55
|
|
532
532
|
|
|
533
533
|
###### Parameters
|
|
534
534
|
|
|
@@ -555,7 +555,7 @@ Error.prepareStackTrace
|
|
|
555
555
|
|
|
556
556
|
### TechnicalError
|
|
557
557
|
|
|
558
|
-
Defined in: [packages/core/src/errors.ts:7](https://github.com/btravers/amqp-contract/blob/
|
|
558
|
+
Defined in: [packages/core/src/errors.ts:7](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L7)
|
|
559
559
|
|
|
560
560
|
Error for technical/runtime failures that cannot be prevented by TypeScript.
|
|
561
561
|
|
|
@@ -574,7 +574,7 @@ and other runtime errors. This error is shared across core, worker, and client p
|
|
|
574
574
|
new TechnicalError(message, cause?): TechnicalError;
|
|
575
575
|
```
|
|
576
576
|
|
|
577
|
-
Defined in: [packages/core/src/errors.ts:8](https://github.com/btravers/amqp-contract/blob/
|
|
577
|
+
Defined in: [packages/core/src/errors.ts:8](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L8)
|
|
578
578
|
|
|
579
579
|
###### Parameters
|
|
580
580
|
|
|
@@ -597,11 +597,11 @@ Error.constructor
|
|
|
597
597
|
|
|
598
598
|
| Property | Modifier | Type | Description | Inherited from | Defined in |
|
|
599
599
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
600
|
-
| <a id="cause-1"></a> `cause?` | `readonly` | `unknown` | - | `Error.cause` | [packages/core/src/errors.ts:10](https://github.com/btravers/amqp-contract/blob/
|
|
600
|
+
| <a id="cause-1"></a> `cause?` | `readonly` | `unknown` | - | `Error.cause` | [packages/core/src/errors.ts:10](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/errors.ts#L10) |
|
|
601
601
|
| <a id="message-1"></a> `message` | `public` | `string` | - | `Error.message` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1077 |
|
|
602
602
|
| <a id="name-1"></a> `name` | `public` | `string` | - | `Error.name` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
|
|
603
603
|
| <a id="stack-1"></a> `stack?` | `public` | `string` | - | `Error.stack` | node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1078 |
|
|
604
|
-
| <a id="stacktracelimit-1"></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.
|
|
604
|
+
| <a id="stacktracelimit-1"></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.3.0/node\_modules/@types/node/globals.d.ts:67 |
|
|
605
605
|
|
|
606
606
|
#### Methods
|
|
607
607
|
|
|
@@ -611,7 +611,7 @@ Error.constructor
|
|
|
611
611
|
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
-
Defined in: node\_modules/.pnpm/@types+node@25.
|
|
614
|
+
Defined in: node\_modules/.pnpm/@types+node@25.3.0/node\_modules/@types/node/globals.d.ts:51
|
|
615
615
|
|
|
616
616
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
617
617
|
a string representing the location in the code at which
|
|
@@ -680,7 +680,7 @@ Error.captureStackTrace
|
|
|
680
680
|
static prepareStackTrace(err, stackTraces): any;
|
|
681
681
|
```
|
|
682
682
|
|
|
683
|
-
Defined in: node\_modules/.pnpm/@types+node@25.
|
|
683
|
+
Defined in: node\_modules/.pnpm/@types+node@25.3.0/node\_modules/@types/node/globals.d.ts:55
|
|
684
684
|
|
|
685
685
|
###### Parameters
|
|
686
686
|
|
|
@@ -711,7 +711,7 @@ Error.prepareStackTrace
|
|
|
711
711
|
type AmqpClientOptions = object;
|
|
712
712
|
```
|
|
713
713
|
|
|
714
|
-
Defined in: [packages/core/src/amqp-client.ts:45](https://github.com/btravers/amqp-contract/blob/
|
|
714
|
+
Defined in: [packages/core/src/amqp-client.ts:45](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L45)
|
|
715
715
|
|
|
716
716
|
Options for creating an AMQP client.
|
|
717
717
|
|
|
@@ -719,9 +719,9 @@ Options for creating an AMQP client.
|
|
|
719
719
|
|
|
720
720
|
| Property | Type | Description | Defined in |
|
|
721
721
|
| ------ | ------ | ------ | ------ |
|
|
722
|
-
| <a id="channeloptions"></a> `channelOptions?` | `Partial`<`CreateChannelOpts`> | Optional channel configuration options. | [packages/core/src/amqp-client.ts:48](https://github.com/btravers/amqp-contract/blob/
|
|
723
|
-
| <a id="connectionoptions"></a> `connectionOptions?` | `AmqpConnectionManagerOptions` | Optional connection configuration (heartbeat, reconnect settings, etc.). | [packages/core/src/amqp-client.ts:47](https://github.com/btravers/amqp-contract/blob/
|
|
724
|
-
| <a id="urls"></a> `urls` | `ConnectionUrl`[] | AMQP broker URL(s). Multiple URLs provide failover support. | [packages/core/src/amqp-client.ts:46](https://github.com/btravers/amqp-contract/blob/
|
|
722
|
+
| <a id="channeloptions"></a> `channelOptions?` | `Partial`<`CreateChannelOpts`> | Optional channel configuration options. | [packages/core/src/amqp-client.ts:48](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L48) |
|
|
723
|
+
| <a id="connectionoptions"></a> `connectionOptions?` | `AmqpConnectionManagerOptions` | Optional connection configuration (heartbeat, reconnect settings, etc.). | [packages/core/src/amqp-client.ts:47](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L47) |
|
|
724
|
+
| <a id="urls"></a> `urls` | `ConnectionUrl`[] | AMQP broker URL(s). Multiple URLs provide failover support. | [packages/core/src/amqp-client.ts:46](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L46) |
|
|
725
725
|
|
|
726
726
|
***
|
|
727
727
|
|
|
@@ -731,7 +731,7 @@ Options for creating an AMQP client.
|
|
|
731
731
|
type ConsumeCallback = (msg) => void | Promise<void>;
|
|
732
732
|
```
|
|
733
733
|
|
|
734
|
-
Defined in: [packages/core/src/amqp-client.ts:54](https://github.com/btravers/amqp-contract/blob/
|
|
734
|
+
Defined in: [packages/core/src/amqp-client.ts:54](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/amqp-client.ts#L54)
|
|
735
735
|
|
|
736
736
|
Callback type for consuming messages.
|
|
737
737
|
|
|
@@ -753,7 +753,7 @@ Callback type for consuming messages.
|
|
|
753
753
|
type Logger = object;
|
|
754
754
|
```
|
|
755
755
|
|
|
756
|
-
Defined in: [packages/core/src/logger.ts:30](https://github.com/btravers/amqp-contract/blob/
|
|
756
|
+
Defined in: [packages/core/src/logger.ts:30](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L30)
|
|
757
757
|
|
|
758
758
|
Logger interface for amqp-contract packages.
|
|
759
759
|
|
|
@@ -780,7 +780,7 @@ const logger: Logger = {
|
|
|
780
780
|
debug(message, context?): void;
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
Defined in: [packages/core/src/logger.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
783
|
+
Defined in: [packages/core/src/logger.ts:36](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L36)
|
|
784
784
|
|
|
785
785
|
Log debug level messages
|
|
786
786
|
|
|
@@ -801,7 +801,7 @@ Log debug level messages
|
|
|
801
801
|
error(message, context?): void;
|
|
802
802
|
```
|
|
803
803
|
|
|
804
|
-
Defined in: [packages/core/src/logger.ts:57](https://github.com/btravers/amqp-contract/blob/
|
|
804
|
+
Defined in: [packages/core/src/logger.ts:57](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L57)
|
|
805
805
|
|
|
806
806
|
Log error level messages
|
|
807
807
|
|
|
@@ -822,7 +822,7 @@ Log error level messages
|
|
|
822
822
|
info(message, context?): void;
|
|
823
823
|
```
|
|
824
824
|
|
|
825
|
-
Defined in: [packages/core/src/logger.ts:43](https://github.com/btravers/amqp-contract/blob/
|
|
825
|
+
Defined in: [packages/core/src/logger.ts:43](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L43)
|
|
826
826
|
|
|
827
827
|
Log info level messages
|
|
828
828
|
|
|
@@ -843,7 +843,7 @@ Log info level messages
|
|
|
843
843
|
warn(message, context?): void;
|
|
844
844
|
```
|
|
845
845
|
|
|
846
|
-
Defined in: [packages/core/src/logger.ts:50](https://github.com/btravers/amqp-contract/blob/
|
|
846
|
+
Defined in: [packages/core/src/logger.ts:50](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L50)
|
|
847
847
|
|
|
848
848
|
Log warning level messages
|
|
849
849
|
|
|
@@ -866,7 +866,7 @@ Log warning level messages
|
|
|
866
866
|
type LoggerContext = Record<string, unknown> & object;
|
|
867
867
|
```
|
|
868
868
|
|
|
869
|
-
Defined in: [packages/core/src/logger.ts:9](https://github.com/btravers/amqp-contract/blob/
|
|
869
|
+
Defined in: [packages/core/src/logger.ts:9](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L9)
|
|
870
870
|
|
|
871
871
|
Context object for logger methods.
|
|
872
872
|
|
|
@@ -877,7 +877,7 @@ for common logging context properties.
|
|
|
877
877
|
|
|
878
878
|
| Name | Type | Defined in |
|
|
879
879
|
| ------ | ------ | ------ |
|
|
880
|
-
| `error?` | `unknown` | [packages/core/src/logger.ts:10](https://github.com/btravers/amqp-contract/blob/
|
|
880
|
+
| `error?` | `unknown` | [packages/core/src/logger.ts:10](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/logger.ts#L10) |
|
|
881
881
|
|
|
882
882
|
***
|
|
883
883
|
|
|
@@ -887,7 +887,7 @@ for common logging context properties.
|
|
|
887
887
|
type TelemetryProvider = object;
|
|
888
888
|
```
|
|
889
889
|
|
|
890
|
-
Defined in: [packages/core/src/telemetry.ts:53](https://github.com/btravers/amqp-contract/blob/
|
|
890
|
+
Defined in: [packages/core/src/telemetry.ts:53](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L53)
|
|
891
891
|
|
|
892
892
|
Telemetry provider for AMQP operations.
|
|
893
893
|
Uses lazy loading to gracefully handle cases where OpenTelemetry is not installed.
|
|
@@ -896,11 +896,11 @@ Uses lazy loading to gracefully handle cases where OpenTelemetry is not installe
|
|
|
896
896
|
|
|
897
897
|
| Property | Type | Description | Defined in |
|
|
898
898
|
| ------ | ------ | ------ | ------ |
|
|
899
|
-
| <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:70](https://github.com/btravers/amqp-contract/blob/
|
|
900
|
-
| <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:82](https://github.com/btravers/amqp-contract/blob/
|
|
901
|
-
| <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:64](https://github.com/btravers/amqp-contract/blob/
|
|
902
|
-
| <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:76](https://github.com/btravers/amqp-contract/blob/
|
|
903
|
-
| <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:58](https://github.com/btravers/amqp-contract/blob/
|
|
899
|
+
| <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:70](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L70) |
|
|
900
|
+
| <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:82](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L82) |
|
|
901
|
+
| <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:64](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L64) |
|
|
902
|
+
| <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:76](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L76) |
|
|
903
|
+
| <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:58](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L58) |
|
|
904
904
|
|
|
905
905
|
## Variables
|
|
906
906
|
|
|
@@ -910,7 +910,7 @@ Uses lazy loading to gracefully handle cases where OpenTelemetry is not installe
|
|
|
910
910
|
const defaultTelemetryProvider: TelemetryProvider;
|
|
911
911
|
```
|
|
912
912
|
|
|
913
|
-
Defined in: [packages/core/src/telemetry.ts:194](https://github.com/btravers/amqp-contract/blob/
|
|
913
|
+
Defined in: [packages/core/src/telemetry.ts:194](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L194)
|
|
914
914
|
|
|
915
915
|
Default telemetry provider that uses OpenTelemetry API if available.
|
|
916
916
|
|
|
@@ -922,7 +922,7 @@ Default telemetry provider that uses OpenTelemetry API if available.
|
|
|
922
922
|
const MessagingSemanticConventions: object;
|
|
923
923
|
```
|
|
924
924
|
|
|
925
|
-
Defined in: [packages/core/src/telemetry.ts:25](https://github.com/btravers/amqp-contract/blob/
|
|
925
|
+
Defined in: [packages/core/src/telemetry.ts:25](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L25)
|
|
926
926
|
|
|
927
927
|
Semantic conventions for AMQP messaging following OpenTelemetry standards.
|
|
928
928
|
|
|
@@ -930,20 +930,20 @@ Semantic conventions for AMQP messaging following OpenTelemetry standards.
|
|
|
930
930
|
|
|
931
931
|
| Name | Type | Default value | Defined in |
|
|
932
932
|
| ------ | ------ | ------ | ------ |
|
|
933
|
-
| <a id="property-amqp_consumer_name"></a> `AMQP_CONSUMER_NAME` | `"amqp.consumer.name"` | `"amqp.consumer.name"` | [packages/core/src/telemetry.ts:36](https://github.com/btravers/amqp-contract/blob/
|
|
934
|
-
| <a id="property-amqp_publisher_name"></a> `AMQP_PUBLISHER_NAME` | `"amqp.publisher.name"` | `"amqp.publisher.name"` | [packages/core/src/telemetry.ts:35](https://github.com/btravers/amqp-contract/blob/
|
|
935
|
-
| <a id="property-error_type"></a> `ERROR_TYPE` | `"error.type"` | `"error.type"` | [packages/core/src/telemetry.ts:39](https://github.com/btravers/amqp-contract/blob/
|
|
936
|
-
| <a id="property-messaging_destination"></a> `MESSAGING_DESTINATION` | `"messaging.destination.name"` | `"messaging.destination.name"` | [packages/core/src/telemetry.ts:28](https://github.com/btravers/amqp-contract/blob/
|
|
937
|
-
| <a id="property-messaging_destination_kind"></a> `MESSAGING_DESTINATION_KIND` | `"messaging.destination.kind"` | `"messaging.destination.kind"` | [packages/core/src/telemetry.ts:29](https://github.com/btravers/amqp-contract/blob/
|
|
938
|
-
| <a id="property-messaging_destination_kind_exchange"></a> `MESSAGING_DESTINATION_KIND_EXCHANGE` | `"exchange"` | `"exchange"` | [packages/core/src/telemetry.ts:43](https://github.com/btravers/amqp-contract/blob/
|
|
939
|
-
| <a id="property-messaging_destination_kind_queue"></a> `MESSAGING_DESTINATION_KIND_QUEUE` | `"queue"` | `"queue"` | [packages/core/src/telemetry.ts:44](https://github.com/btravers/amqp-contract/blob/
|
|
940
|
-
| <a id="property-messaging_operation"></a> `MESSAGING_OPERATION` | `"messaging.operation"` | `"messaging.operation"` | [packages/core/src/telemetry.ts:30](https://github.com/btravers/amqp-contract/blob/
|
|
941
|
-
| <a id="property-messaging_operation_process"></a> `MESSAGING_OPERATION_PROCESS` | `"process"` | `"process"` | [packages/core/src/telemetry.ts:46](https://github.com/btravers/amqp-contract/blob/
|
|
942
|
-
| <a id="property-messaging_operation_publish"></a> `MESSAGING_OPERATION_PUBLISH` | `"publish"` | `"publish"` | [packages/core/src/telemetry.ts:45](https://github.com/btravers/amqp-contract/blob/
|
|
943
|
-
| <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:34](https://github.com/btravers/amqp-contract/blob/
|
|
944
|
-
| <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:33](https://github.com/btravers/amqp-contract/blob/
|
|
945
|
-
| <a id="property-messaging_system"></a> `MESSAGING_SYSTEM` | `"messaging.system"` | `"messaging.system"` | [packages/core/src/telemetry.ts:27](https://github.com/btravers/amqp-contract/blob/
|
|
946
|
-
| <a id="property-messaging_system_rabbitmq"></a> `MESSAGING_SYSTEM_RABBITMQ` | `"rabbitmq"` | `"rabbitmq"` | [packages/core/src/telemetry.ts:42](https://github.com/btravers/amqp-contract/blob/
|
|
933
|
+
| <a id="property-amqp_consumer_name"></a> `AMQP_CONSUMER_NAME` | `"amqp.consumer.name"` | `"amqp.consumer.name"` | [packages/core/src/telemetry.ts:36](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L36) |
|
|
934
|
+
| <a id="property-amqp_publisher_name"></a> `AMQP_PUBLISHER_NAME` | `"amqp.publisher.name"` | `"amqp.publisher.name"` | [packages/core/src/telemetry.ts:35](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L35) |
|
|
935
|
+
| <a id="property-error_type"></a> `ERROR_TYPE` | `"error.type"` | `"error.type"` | [packages/core/src/telemetry.ts:39](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L39) |
|
|
936
|
+
| <a id="property-messaging_destination"></a> `MESSAGING_DESTINATION` | `"messaging.destination.name"` | `"messaging.destination.name"` | [packages/core/src/telemetry.ts:28](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L28) |
|
|
937
|
+
| <a id="property-messaging_destination_kind"></a> `MESSAGING_DESTINATION_KIND` | `"messaging.destination.kind"` | `"messaging.destination.kind"` | [packages/core/src/telemetry.ts:29](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L29) |
|
|
938
|
+
| <a id="property-messaging_destination_kind_exchange"></a> `MESSAGING_DESTINATION_KIND_EXCHANGE` | `"exchange"` | `"exchange"` | [packages/core/src/telemetry.ts:43](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L43) |
|
|
939
|
+
| <a id="property-messaging_destination_kind_queue"></a> `MESSAGING_DESTINATION_KIND_QUEUE` | `"queue"` | `"queue"` | [packages/core/src/telemetry.ts:44](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L44) |
|
|
940
|
+
| <a id="property-messaging_operation"></a> `MESSAGING_OPERATION` | `"messaging.operation"` | `"messaging.operation"` | [packages/core/src/telemetry.ts:30](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L30) |
|
|
941
|
+
| <a id="property-messaging_operation_process"></a> `MESSAGING_OPERATION_PROCESS` | `"process"` | `"process"` | [packages/core/src/telemetry.ts:46](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L46) |
|
|
942
|
+
| <a id="property-messaging_operation_publish"></a> `MESSAGING_OPERATION_PUBLISH` | `"publish"` | `"publish"` | [packages/core/src/telemetry.ts:45](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L45) |
|
|
943
|
+
| <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:34](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L34) |
|
|
944
|
+
| <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:33](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L33) |
|
|
945
|
+
| <a id="property-messaging_system"></a> `MESSAGING_SYSTEM` | `"messaging.system"` | `"messaging.system"` | [packages/core/src/telemetry.ts:27](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L27) |
|
|
946
|
+
| <a id="property-messaging_system_rabbitmq"></a> `MESSAGING_SYSTEM_RABBITMQ` | `"rabbitmq"` | `"rabbitmq"` | [packages/core/src/telemetry.ts:42](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L42) |
|
|
947
947
|
|
|
948
948
|
#### See
|
|
949
949
|
|
|
@@ -957,7 +957,7 @@ https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/
|
|
|
957
957
|
function endSpanError(span, error): void;
|
|
958
958
|
```
|
|
959
959
|
|
|
960
|
-
Defined in: [packages/core/src/telemetry.ts:288](https://github.com/btravers/amqp-contract/blob/
|
|
960
|
+
Defined in: [packages/core/src/telemetry.ts:288](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L288)
|
|
961
961
|
|
|
962
962
|
End a span with error status.
|
|
963
963
|
|
|
@@ -980,7 +980,7 @@ End a span with error status.
|
|
|
980
980
|
function endSpanSuccess(span): void;
|
|
981
981
|
```
|
|
982
982
|
|
|
983
|
-
Defined in: [packages/core/src/telemetry.ts:273](https://github.com/btravers/amqp-contract/blob/
|
|
983
|
+
Defined in: [packages/core/src/telemetry.ts:273](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L273)
|
|
984
984
|
|
|
985
985
|
End a span with success status.
|
|
986
986
|
|
|
@@ -1007,7 +1007,7 @@ function recordConsumeMetric(
|
|
|
1007
1007
|
durationMs): void;
|
|
1008
1008
|
```
|
|
1009
1009
|
|
|
1010
|
-
Defined in: [packages/core/src/telemetry.ts:332](https://github.com/btravers/amqp-contract/blob/
|
|
1010
|
+
Defined in: [packages/core/src/telemetry.ts:332](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L332)
|
|
1011
1011
|
|
|
1012
1012
|
Record a consume metric.
|
|
1013
1013
|
|
|
@@ -1038,7 +1038,7 @@ function recordPublishMetric(
|
|
|
1038
1038
|
durationMs): void;
|
|
1039
1039
|
```
|
|
1040
1040
|
|
|
1041
|
-
Defined in: [packages/core/src/telemetry.ts:305](https://github.com/btravers/amqp-contract/blob/
|
|
1041
|
+
Defined in: [packages/core/src/telemetry.ts:305](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L305)
|
|
1042
1042
|
|
|
1043
1043
|
Record a publish metric.
|
|
1044
1044
|
|
|
@@ -1064,7 +1064,7 @@ Record a publish metric.
|
|
|
1064
1064
|
function setupAmqpTopology(channel, contract): Promise<void>;
|
|
1065
1065
|
```
|
|
1066
1066
|
|
|
1067
|
-
Defined in: [packages/core/src/setup.ts:26](https://github.com/btravers/amqp-contract/blob/
|
|
1067
|
+
Defined in: [packages/core/src/setup.ts:26](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/setup.ts#L26)
|
|
1068
1068
|
|
|
1069
1069
|
Setup AMQP topology (exchanges, queues, and bindings) from a contract definition.
|
|
1070
1070
|
|
|
@@ -1112,7 +1112,7 @@ function startConsumeSpan(
|
|
|
1112
1112
|
attributes?): Span | undefined;
|
|
1113
1113
|
```
|
|
1114
1114
|
|
|
1115
|
-
Defined in: [packages/core/src/telemetry.ts:241](https://github.com/btravers/amqp-contract/blob/
|
|
1115
|
+
Defined in: [packages/core/src/telemetry.ts:241](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L241)
|
|
1116
1116
|
|
|
1117
1117
|
Create a span for a consume/process operation.
|
|
1118
1118
|
Returns undefined if OpenTelemetry is not available.
|
|
@@ -1142,7 +1142,7 @@ function startPublishSpan(
|
|
|
1142
1142
|
attributes?): Span | undefined;
|
|
1143
1143
|
```
|
|
1144
1144
|
|
|
1145
|
-
Defined in: [packages/core/src/telemetry.ts:206](https://github.com/btravers/amqp-contract/blob/
|
|
1145
|
+
Defined in: [packages/core/src/telemetry.ts:206](https://github.com/btravers/amqp-contract/blob/04791f62e768b84b07aa5288adb8ab72296d6663/packages/core/src/telemetry.ts#L206)
|
|
1146
1146
|
|
|
1147
1147
|
Create a span for a publish operation.
|
|
1148
1148
|
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.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Core utilities for AMQP setup and management in amqp-contract",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"amqp",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"@swan-io/boxed": "3.2.1",
|
|
54
54
|
"amqp-connection-manager": "5.0.0",
|
|
55
55
|
"amqplib": "0.10.9",
|
|
56
|
-
"@amqp-contract/contract": "0.
|
|
56
|
+
"@amqp-contract/contract": "0.20.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@opentelemetry/api": "1.9.0",
|
|
60
60
|
"@types/amqplib": "0.10.8",
|
|
61
61
|
"@vitest/coverage-v8": "4.0.18",
|
|
62
62
|
"tsdown": "0.20.3",
|
|
63
|
-
"typedoc": "0.28.
|
|
63
|
+
"typedoc": "0.28.17",
|
|
64
64
|
"typescript": "5.9.3",
|
|
65
65
|
"vitest": "4.0.18",
|
|
66
66
|
"zod": "4.3.6",
|
|
67
|
-
"@amqp-contract/testing": "0.
|
|
67
|
+
"@amqp-contract/testing": "0.20.0",
|
|
68
68
|
"@amqp-contract/tsconfig": "0.1.0",
|
|
69
69
|
"@amqp-contract/typedoc": "0.1.0"
|
|
70
70
|
},
|