Skip to content
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

refactor: add metrics.Container to prepare for per-chain metrics #72

Merged
merged 13 commits into from
Oct 19, 2022

Conversation

IvanVergiliev
Copy link
Contributor

@IvanVergiliev IvanVergiliev commented Oct 11, 2022

Description

This PR introduces a MetricContainer that can be used to pre-fill a set of metric labels. It'll be used in a follow-up PR to create a separate container per chain to enable multi-chain support.

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 😎 New feature (non-breaking change which adds functionality)
  • ⁉️ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ⚒️ Refactor (no functional changes)
  • 📖 Documentation (updating or adding docs)

How Has This Been Tested?

  1. Started a metric server in one of the e2e tests
  2. Added a time.Sleep at the end
  3. Queried the metrics endpoint and verified that metrics are still emitted correctly.

@IvanVergiliev IvanVergiliev changed the title feat: add metrics.Container to prepare for per-chain metrics refactor: add metrics.Container to prepare for per-chain metrics Oct 11, 2022
@IvanVergiliev IvanVergiliev merged commit 0979fdc into main Oct 19, 2022
@IvanVergiliev IvanVergiliev deleted the multi-chain-metrics branch October 19, 2022 22:29
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