Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Sep 29, 2025

Primarily code movement.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the observability and metrics functionality in the CLI, moving from individual metric collection to a more comprehensive diagnostics system.

  • Consolidates observability operations into a single run() method that handles tracing, metrics, and cleanup
  • Replaces individual metric file output with a structured diagnostics directory system
  • Moves allocator stats dumping functionality from the main app to the observability module

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cli/observability_flags.go Refactors observability infrastructure with new diagnostics directory structure, consolidated run method, and allocator stats integration
cli/app.go Simplifies app structure by removing duplicate allocator stats handling and consolidating repository action methods

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.60%. Comparing base (cb455c6) to head (2bf450c).
⚠️ Report is 671 commits behind head on master.

Files with missing lines Patch % Lines
cli/observability_flags.go 80.95% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4852      +/-   ##
==========================================
+ Coverage   75.86%   76.60%   +0.73%     
==========================================
  Files         470      536      +66     
  Lines       37301    41171    +3870     
==========================================
+ Hits        28299    31537    +3238     
- Misses       7071     7593     +522     
- Partials     1931     2041     +110     

☔ View full report in Codecov by Sentry.
📢 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.

@julio-lopez julio-lopez changed the title Refactor/cli observ refactor(general): cleanup observabilityFlags Sep 29, 2025
@kopia kopia deleted a comment from Copilot AI Sep 29, 2025
@julio-lopez julio-lopez marked this pull request as ready for review September 29, 2025 06:57
@julio-lopez julio-lopez merged commit 6650223 into kopia:master Sep 29, 2025
31 of 33 checks passed
@julio-lopez julio-lopez deleted the refactor/cli-observ branch September 29, 2025 06:59
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.

1 participant