Skip to content

refactor: simplify runtime metrics collection architecture #20

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felixge
Copy link
Member

@felixge felixge commented Jul 3, 2025

Remove runtimeMetricStore abstraction and move functionality directly into Emitter. This reduces complexity by eliminating the intermediate layer and makes the code more straightforward to understand and maintain.

Changes:

  • Move metrics map, statsd client, logger, and tags directly to Emitter
  • Convert runtimeMetricStore methods to Emitter methods
  • Update tests to work with simplified architecture
  • Maintain all existing functionality and behavior

🤖 Generated with Claude Code.

Remove runtimeMetricStore abstraction and move functionality directly into Emitter.
This reduces complexity by eliminating the intermediate layer and makes the code
more straightforward to understand and maintain.

Changes:
- Move metrics map, statsd client, logger, and tags directly to Emitter
- Convert runtimeMetricStore methods to Emitter methods
- Update tests to work with simplified architecture
- Maintain all existing functionality and behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@felixge
Copy link
Member Author

felixge commented Jul 4, 2025

Changing my mind on this. Moving everything into the Emitter makes it harder to test. The stuff produced by Claude "works", but I smell race conditions.

So given the deadlines, I think we should press forward and keep the current code structure as-is.

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