Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Rockskip: refactor metrics registration#62557

Merged
jtibshirani merged 1 commit into
mainfrom
jtibs/rockskip-metrics
May 9, 2024
Merged

Rockskip: refactor metrics registration#62557
jtibshirani merged 1 commit into
mainfrom
jtibs/rockskip-metrics

Conversation

@jtibshirani

Copy link
Copy Markdown
Contributor

This commit refactors the Rockskip metrics logic to use observationCtx. In
tests, we now pass TestContext which has a no-op metrics registerer.

This change lets us run more than one test that spins up a Rockskip service.
Without it, tests fail with "duplicate metrics registered" errors.

Test plan

Copied the TestIndex test, ran all tests, and checked that there are no
longer duplicate registration errors.

@jtibshirani jtibshirani requested a review from a team May 8, 2024 18:31
@cla-bot cla-bot Bot added the cla-signed label May 8, 2024
@github-actions github-actions Bot added team/product-platform team/search-platform Issues owned by the search platform team labels May 8, 2024
@jtibshirani jtibshirani merged commit 9bf75a2 into main May 9, 2024
@jtibshirani jtibshirani deleted the jtibs/rockskip-metrics branch May 9, 2024 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/search-platform Issues owned by the search platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants