@reproapp/node-sdk 0.0.23 → 0.0.25

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/dist/index.d.ts CHANGED
@@ -332,6 +332,18 @@ declare function recordKafkaTraceEventAsync(raw: any, sink: TraceEventRecord[],
332
332
  declare function patchKafkaProducerInstance(producer: any, cfg: KafkaJsPatchConfig): void;
333
333
  declare function wrapKafkaEachMessageHandler(eachMessage: any, cfg: KafkaJsPatchConfig, consumer: any): (this: any, payload: any) => Promise<any>;
334
334
  export declare function patchKafkaJs(cfg: KafkaJsPatchConfig): void;
335
+ type AmqpContextResolver = () => {
336
+ sid?: string;
337
+ aid?: string;
338
+ } | undefined;
339
+ export type AmqplibPatchConfig = ReproMiddlewareConfig & {
340
+ resolveContext?: AmqpContextResolver;
341
+ };
342
+ declare function wrapAmqplibConsumeHandler(onMessage: any, cfg: AmqplibPatchConfig, queue: any): (this: any, message: any) => any;
343
+ declare function patchAmqplibChannel(channel: any, cfg: AmqplibPatchConfig): void;
344
+ declare function patchAmqplibConnection(connection: any, cfg: AmqplibPatchConfig): void;
345
+ declare function patchAmqplibModule(amqpModule: any, cfg: AmqplibPatchConfig): void;
346
+ export declare function patchAmqplib(cfg: AmqplibPatchConfig): void;
335
347
  export type RedisPatchConfig = ReproMiddlewareConfig & {
336
348
  resolveContext?: () => {
337
349
  sid?: string;
@@ -367,6 +379,10 @@ export declare const __reproTestHooks: {
367
379
  materializeInlinePrivacyValueAsyncForTest: typeof materializeInlinePrivacyValueAsync;
368
380
  patchKafkaProducerInstanceForTest: typeof patchKafkaProducerInstance;
369
381
  wrapKafkaEachMessageHandlerForTest: typeof wrapKafkaEachMessageHandler;
382
+ patchAmqplibModuleForTest: typeof patchAmqplibModule;
383
+ patchAmqplibConnectionForTest: typeof patchAmqplibConnection;
384
+ patchAmqplibChannelForTest: typeof patchAmqplibChannel;
385
+ wrapAmqplibConsumeHandlerForTest: typeof wrapAmqplibConsumeHandler;
370
386
  chunkTraceEventsForTransportForTest: typeof chunkTraceEventsForTransport;
371
387
  estimateTraceBatchSerializedBytesForTest: typeof estimateTraceBatchSerializedBytes;
372
388
  sanitizeTraceValueForPrivacyForTest: typeof sanitizeTraceValueForPrivacy;