-
Notifications
You must be signed in to change notification settings - Fork 72
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
chore: Support use of an alias field #600
base: main
Are you sure you want to change the base?
Conversation
src/dispatch/Dispatch.ts
Outdated
@@ -224,6 +224,15 @@ export class Dispatch { | |||
} | |||
|
|||
private createRequest(): PutRumEventsRequest { | |||
if (this.config.alias) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue(small): we need to be mindful about the number of lines we add to this package. Pretty sure we can just go ahead and add Alias
like this. If it's undefined, then it won't be included.
if (this.config.alias) { | |
private createRequest(): PutRumEventsRequest { | |
return { | |
BatchId: v4(), | |
AppMonitorDetails: this.eventCache.getAppMonitorDetails(), | |
UserDetails: this.eventCache.getUserDetails(), | |
RumEvents: this.eventCache.getEventBatch(), | |
Alias: this.config.alias | |
}; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good callout. updated
Oh this should be a feature by the way, not a chore |
This PR adds support for the use of alias field to send with PutRumEvents request. Docs will follow in another PR
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.