-
Notifications
You must be signed in to change notification settings - Fork 71
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: customHeaderFunction to dynamic setting headers #152
Conversation
@@ -126,7 +135,7 @@ export default class Metrics extends EventEmitter { | |||
return true; | |||
} | |||
|
|||
sendMetrics(): boolean { | |||
async sendMetrics(): Promise<boolean> { |
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.
Making this return a Promsie would that not require the calling method to await
it to make sure it actually is executed?
(this.sendMetrics();
on line 79).
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.
nvm; this is not a requirement i javascript
@@ -93,19 +97,24 @@ export default class Metrics extends EventEmitter { | |||
this.disabled = true; | |||
} | |||
|
|||
registerInstance(): boolean { | |||
async registerInstance(): Promise<boolean> { |
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.
calls to this method should now be awaiting
the response.
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.
nvm; this is not a requirement i javascript
released as part of 3.3.0 |
Resolve #151