Skip to content

sentry-micrometer PoC 4: Ignoring Metrics #6150

Description

@linear-code

When using a default setup of Spring Boot + Actuator + Micrometer, the auto emitted logback.events and log4j2.events metrics can be high volume and start slowing down the application. Other Metrics may also be dropped due to one (or more) high volume metrics.

Screenshot 2026-09-22 at 14.53.53.png

This is a flaw in how Sentry Java SDK currently buffers metrics by simply taking each increment as a separate entry. This means a high volume metrics can cause other metrics to no longer make it to Sentry.

As a first step and workaround we want to offer a Sentry.metrics().ignoredMetrics() option that allows customers to easily configure which metrics (by name) should not be sent to Sentry.

In the future we should revisit this. One solution could be to start accumulating metrics, see #6151

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions