Skip to content

chore: Deprecate the enable_metrics option - #1300

Merged
szokeasaurusrex merged 3 commits into
masterfrom
szokeasaurusrex/enable-metrics-deprecation
Aug 25, 2026
Merged

szokeasaurusrex merged 3 commits into
masterfrom
szokeasaurusrex/enable-metrics-deprecation

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Aug 13, 2026 •

Copy link
Copy Markdown
Member

Providing the ability to disable sending metrics is somewhat of a footgun, as this flag can prevent all Sentry metrics from being sent, so this change turns that option into a no-op, ensuring metrics are always enabled.

Metrics are only sent when users explicitly record them with the metrics APIs we provide. Users who do not want metrics can stop using those APIs.

Resolves #1298
Resolves RUST-275

@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

RUST-275

@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review August 13, 2026 11:21
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner August 13, 2026 11:21
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/enable-metrics-deprecation branch from dd57b8b to f023c37 Compare August 13, 2026 12:11
Comment thread sentry-core/src/client/mod.rs Resolved
Comment thread sentry-core/src/clientoptions.rs Resolved
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/enable-metrics-deprecation branch from f023c37 to 469f7a8 Compare August 13, 2026 13:53
Providing the ability to disable sending metrics is somewhat of a footgun, as this flag can prevent all Sentry metrics from being sent, so this change turns that option into a no-op, ensuring metrics are always enabled.

Metrics are only sent when users explicitly record them with the metrics APIs we provide. Users who do not want metrics can stop using those APIs.

Resolves [#1298](#1298)
Resolves [RUST-275](https://linear.app/getsentry/issue/RUST-275)
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/enable-metrics-deprecation branch from 469f7a8 to 60d97e5 Compare August 25, 2026 07:32
@szokeasaurusrex
szokeasaurusrex changed the base branch from szokeasaurusrex/enable-logs-deprecation to master August 25, 2026 07:32
@szokeasaurusrex
szokeasaurusrex merged commit 265b417 into master Aug 25, 2026
31 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/enable-metrics-deprecation branch August 25, 2026 18:26
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.

Deprecate and no-op-ify enable_metrics

2 participants