#3307 feat: Allow the user to override stream and sink meters (i.e. counters & timers)
Pull request opened by
edgarrmondragon
## Summary by Sourcery
Introduce overrideable metrics getters for stream and sink counters and timers and refactor usage to centralize context handling via a new with_context method.
New Features:
• Add get_record_counter, get_batch_counter, and get_sync_timer methods to Stream core for customizable counters and timers
• Add get_sink_record_counter and get_batch_processing_timer methods to Sink core for customizable sink metrics
• Add get_http_request_counter method to RESTStream for customizable HTTP request metrics
Enhancements:
• Refactor stream and sink implementations to use the new get_* methods instead of direct metrics calls
• Unify meter context handling by replacing direct context assignments with the new with_context method in metrics
• Deprecate the metrics.Counter.context setter in favor of with_context
meltano/sdk