Skip to content

feat(metrics): Make a consistent noop flush behavior#2428

Merged
mitsuhiko merged 2 commits intomasterfrom
feature/make-flush-noop
Oct 10, 2023
Merged

feat(metrics): Make a consistent noop flush behavior#2428
mitsuhiko merged 2 commits intomasterfrom
feature/make-flush-noop

Conversation

@mitsuhiko
Copy link
Contributor

This simplifies the noop behavior for the recursion detection:

  • background thread now always sets in_metrics
  • force flush now marks flush as noop which sets in_metrics

In either case _flush is called and is then protected if it were to call into add or flush.

@mitsuhiko mitsuhiko marked this pull request as ready for review October 10, 2023 10:28
@mitsuhiko mitsuhiko enabled auto-merge (squash) October 10, 2023 10:52
@mitsuhiko mitsuhiko merged commit 1b445c6 into master Oct 10, 2023
@mitsuhiko mitsuhiko deleted the feature/make-flush-noop branch October 10, 2023 10:53
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