Skip to content

feat(analytics): enhance command tracking with additional properties#1552

Merged
ramya18101 merged 4 commits into
DXCDT-1862-enhance-command-tracking-eventsfrom
DXCDT-1862-enhance-command-tracking-with-additional-properties
Jun 23, 2026
Merged

feat(analytics): enhance command tracking with additional properties#1552
ramya18101 merged 4 commits into
DXCDT-1862-enhance-command-tracking-eventsfrom
DXCDT-1862-enhance-command-tracking-with-additional-properties

Conversation

@ramya18101

@ramya18101 ramya18101 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

This pull request enhances analytics tracking for command execution in the CLI by collecting richer context about the environment and command invocation in the event properties.

  • interactive
  • ci
  • no_input
  • output_format: --json / --json-compact / --csv into one value), not the raw flags.
  • forced

📚 References

DXCDT-1863

🔬 Testing

  • Added unit tests for the new utility functions

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101
ramya18101 marked this pull request as ready for review June 22, 2026 08:24
@ramya18101
ramya18101 requested a review from a team as a code owner June 22, 2026 08:24
ramya18101 and others added 3 commits June 22, 2026 22:59
…roperties (#1553)

* feat(analytics): enhance command tracking with agent identification properties

* enhance agent detection with additional environment variables and process info caching

* remove un-necessary func

* feat(agent-detection): enhance agent detection with final env variables
…1862-enhance-command-tracking-with-additional-properties
…perties' of https://github.com/auth0/auth0-cli into DXCDT-1862-enhance-command-tracking-with-additional-properties
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.95652% with 18 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (DXCDT-1862-enhance-command-tracking-events@86d8a4d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/cli/agent_detection.go 80.21% 15 Missing and 3 partials ⚠️
Additional details and impacted files
@@                              Coverage Diff                              @@
##             DXCDT-1862-enhance-command-tracking-events    #1552   +/-   ##
=============================================================================
  Coverage                                              ?   59.45%           
=============================================================================
  Files                                                 ?      122           
  Lines                                                 ?    23493           
  Branches                                              ?        0           
=============================================================================
  Hits                                                  ?    13967           
  Misses                                                ?     8646           
  Partials                                              ?      880           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ramya18101
ramya18101 merged commit ed2c31b into DXCDT-1862-enhance-command-tracking-events Jun 23, 2026
6 checks passed
@ramya18101
ramya18101 deleted the DXCDT-1862-enhance-command-tracking-with-additional-properties branch June 23, 2026 04:47
ramya18101 added a commit that referenced this pull request Jun 23, 2026
…ents (#1551)

* feat(analytics): enhance command tracking with success and failure events

* feat(analytics): improve error handling for API responses

* feat(analytics): unify command tracking events under a single method

* feat(analytics): enhance command tracking with additional properties (#1552)

* feat(analytics): enhance command tracking with additional properties

* feat(analytics): enhance command tracking with agent identification properties (#1553)

* feat(analytics): enhance command tracking with agent identification properties

* enhance agent detection with additional environment variables and process info caching

* remove un-necessary func

* feat(agent-detection): enhance agent detection with final env variables
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