-
Notifications
You must be signed in to change notification settings - Fork 406
Feature/ Workbench - telemetry events #48
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
Conversation
describe('sendCliClientCreatedEvent', () => { | ||
it('should emit CliClientCreated event', () => { | ||
service.sendCliClientCreatedEvent(instanceId, { data: 'Some data' }); | ||
service.sendClientCreatedEvent(instanceId, 'cli', { data: 'Some data' }); |
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.
use AppTool.CLI
instead of string 'cli'
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.
thanks. done
describe('sendCliClientCreationFailedEvent', () => { | ||
it('should emit CliClientCreationFailed event', () => { | ||
service.sendCliClientCreationFailedEvent(instanceId, httpException, { data: 'Some data' }); | ||
service.sendClientCreationFailedEvent(instanceId, 'cli', httpException, { data: 'Some data' }); |
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.
The same as above
}); | ||
it('should emit CliClientCreationFailed event without additional data', () => { | ||
service.sendCliClientCreationFailedEvent(instanceId, httpException); | ||
service.sendClientCreationFailedEvent(instanceId, 'cli', httpException); |
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.
same
describe('sendCliClientRecreatedEvent', () => { | ||
it('should emit CliClientRecreated event', () => { | ||
service.sendCliClientRecreatedEvent(instanceId, { data: 'Some data' }); | ||
service.sendClientRecreatedEvent(instanceId, 'cli', { data: 'Some data' }); |
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.
Here and everywhere use constants instead of string
} | ||
default: | ||
return `CLI_${event}`; | ||
} |
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.
there is no need to duplicate CLI_
prefix in the 'cli' and 'default' cases. Use default only instead
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.
done
#RI-1100 - add telemetry events for the workbench