Skip to content

Improve Usage metrics collection on jfrog-cli#3084

Merged
bhanurp merged 6 commits intojfrog:masterfrom
bhanurp:usage-metrics
Sep 17, 2025
Merged

Improve Usage metrics collection on jfrog-cli#3084
bhanurp merged 6 commits intojfrog:masterfrom
bhanurp:usage-metrics

Conversation

@bhanurp
Copy link
Contributor

@bhanurp bhanurp commented Sep 14, 2025

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

PR Description

The existing usage metrics collects only the command name. This PR adds more details into usage metrics to understand jfrog cli command usage

Depends On

jfrog-cli-core
jfrog-cli-artifactory

@bhanurp bhanurp added the ignore for release Automatically generated release notes label Sep 14, 2025
@bhanurp bhanurp requested a review from itsmeleela September 14, 2025 11:24
@bhanurp bhanurp marked this pull request as ready for review September 14, 2025 11:41
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Sep 15, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 15, 2025
for _, next := range c.Args() {
if !strings.HasPrefix(next, "-") {
continue
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor comment and can be handled later too - but I feel we can make it readable by using helper functions per case. Nested if - else case making it less readable and less extensible IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes this can be improved, I will update.

@bhanurp bhanurp merged commit e851e97 into jfrog:master Sep 17, 2025
63 of 64 checks passed
naveenku-jfrog pushed a commit to naveenku-jfrog/jfrog-cli that referenced this pull request Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore for release Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants