Feat: Add Metrics Tracer and Metrics Tracer Factory #2311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a metrics factory to the codebase. It's a direct follow-up to the previously merged metrics exporter (see PR #2272). This factory is responsible for creating and managing the specific service metrics that will be instrumented throughout the code in subsequent changes.
Impact
This change introduces new components but has no immediate impact as the factory is not called at this time.
Testing
Unit tests have been added to verify the correct functionality of the metrics factory and its interaction with the exporter. Additionally, manual verification confirmed that the factory and exporter correctly create and are capable of emitting metrics to Google Cloud Platform (GCP).
This PR introduces no breaking changes.
Additional Information
Future metrics work will involve:
Checklist