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: add new metric recording for action invocation #3

Merged

Conversation

peter-rr
Copy link
Collaborator

Adding a new metric recording when a command is invoked. The metrics are sent correctly to both NewRelic sink and StdOut sink.

This is just a first iteration. Working now on this metric implementation by making use of OCLIF hooks.

@smoya smoya force-pushed the feat/adoptionMetrics branch from c9027b5 to e9e79f6 Compare November 22, 2023 21:36
@@ -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');
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense 👍

Copy link
Owner

@smoya smoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!🙌

@smoya smoya merged commit 94d6e03 into smoya:feat/adoptionMetrics Nov 23, 2023
3 of 8 checks passed
@peter-rr peter-rr deleted the feat/new-metric-for-action-invoked branch February 2, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants