Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added traceId, reqStartTime support in meta #1

Open
wants to merge 1 commit into
base: shivam/node-types
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: added traceId, reqStartTime support in meta
param-jeet-singh committed Jun 23, 2023
commit 8c1af7436e9d3314d020fafc4bc0526876ddd902
7 changes: 6 additions & 1 deletion lib/rabbit.d.ts
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ interface SubscribeCallbackArgs {
replyTo: any;
rKey: string;
correlationId: any;
traceId: any;
reqStartTime: any;
ack: () => void;
nack: () => void;
}
@@ -115,11 +117,14 @@ declare class Rabbit {
* @param {Object} options - the name of the reply queue, correlationId
* @param {string} options.replyTo - the name of reply queue
* @param {string} options.correlationId
* @param {Object} extra - extra message properties like traceId, reqStartTime
* @param {string} extra.traceId
* @param {string} extra.reqStartTime - the time when request initiated in our system
* @param {boolean} handle=true - handle the effect to
*
* @return {Promise}
*/
send(qname: string, message: Record<string, unknown>, options: Options.Publish, handle?: boolean): Promise<void>;
send(qname: string, message: Record<string, unknown>, options: Options.Publish, extra?: Record<string, unknown>, handle?: boolean): Promise<void>;
/**
* Get a message from a queue, just get it
*
Loading