-
-
Notifications
You must be signed in to change notification settings - Fork 0
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: add new metric recording for action invocation #3
feat: add new metric recording for action invocation #3
Conversation
c9027b5
to
e9e79f6
Compare
@@ -112,6 +112,16 @@ export default class Template extends Command { | |||
parser = new Parser(); | |||
|
|||
async run() { | |||
try { | |||
// Metrics recording when command is invoked | |||
await this.recorder.recordActionInvoked('fromTemplate'); |
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.
I would aa a prefix to the action including then the generate
word. Like generate_from_template
or similar
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.
Yeah, makes sense 👍
…-rr/cli into feat/new-metric-for-action-invoked
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.
LGTM!!!🙌
Adding a new metric recording when a command is invoked. The metrics are sent correctly to both
NewRelic
sink andStdOut
sink.This is just a first iteration. Working now on this metric implementation by making use of OCLIF hooks.