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

makes dispatch metrics toggleable #1151

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

vroldanbet
Copy link
Contributor

dispatch metrics tends to cause cryptic errors
in tests when things are not tear down properly
and an instance of the dispatcher isn't Closed.
It also makes difficult running multiple spicedb
in the same process.

This makes those metrics:

  • disabled by default when instantiated programmatically
  • enabled by default in the serve command (as it currently stands before the change)

@vroldanbet vroldanbet requested a review from a team as a code owner February 8, 2023 17:34
@github-actions github-actions bot added area/CLI Affects the command line area/dispatch Affects dispatching of requests labels Feb 8, 2023
@vroldanbet vroldanbet force-pushed the make-disabling-dispatcher-metrics-possible branch 2 times, most recently from 6954425 to e4458ad Compare February 8, 2023 17:56
@vroldanbet vroldanbet self-assigned this Feb 8, 2023
@vroldanbet vroldanbet force-pushed the make-disabling-dispatcher-metrics-possible branch 2 times, most recently from 5c53e28 to c032a05 Compare February 8, 2023 18:17
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Feb 8, 2023
dispatch metrics tends to cause cryptic errors
in tests when things are not tear down properly
and an instance of the dispatcher isn't Closed.
It also makes difficult running multiple spicedb
in the same process.

This makes those metrics:
- disabled by default when instantiated programmatically
- enabled by default in the serve command (as it currently stands
before the change)
@vroldanbet vroldanbet force-pushed the make-disabling-dispatcher-metrics-possible branch from c032a05 to c0d33b0 Compare February 8, 2023 18:28
@vroldanbet vroldanbet merged commit 41ea268 into main Feb 8, 2023
@vroldanbet vroldanbet deleted the make-disabling-dispatcher-metrics-possible branch February 8, 2023 18:39
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/dispatch Affects dispatching of requests area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants