Skip to content

ore: fix OpenTelemetryRateLimitingFilter suppressing every event#36227

Open
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-fix-otel
Open

ore: fix OpenTelemetryRateLimitingFilter suppressing every event#36227
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-fix-otel

Conversation

@def-
Copy link
Copy Markdown
Contributor

@def- def- commented Apr 23, 2026

The filter's should_log ran in both Filter::enabled and Filter::event_enabled. tracing-subscriber calls both per event for a per-layer filter: the first call inserted the callsite into last_logged, the second saw it within the backoff window and returned false — so every OpenTelemetry internal log was dropped, including the first. Make enabled non-mutating and keep the rate-limit decision in event_enabled.

Introduced in #34850 (commit 6e16efb "rate limit opentelemetry internal logs").

The filter's `should_log` ran in both `Filter::enabled` and
`Filter::event_enabled`. tracing-subscriber calls both per event for a
per-layer filter: the first call inserted the callsite into `last_logged`,
the second saw it within the backoff window and returned false — so every
OpenTelemetry internal log was dropped, including the first. Make
`enabled` non-mutating and keep the rate-limit decision in `event_enabled`.

Introduced in MaterializeInc#34850 (commit 6e16efb "rate limit opentelemetry
internal logs").

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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