Skip to content

Remove references to enable_metrics from Rust SDK docs #19688

Closed

Description

@szokeasaurusrex

This option is deprecated, and references like this should be removed:

### Disabling Metrics
To stop sending metrics, call [`.enable_metrics(false)`](https://docs.rs/sentry/latest/sentry/struct.ClientOptions.html#method.enable_metrics) on [`ClientOptions`](https://docs.rs/sentry/latest/sentry/struct.ClientOptions.html) when initializing the SDK.
```rust {filename:main.rs}
let _guard = sentry::init(
sentry::ClientOptions::new()
.dsn("___PUBLIC_DSN___")
.enable_metrics(false),
);
```


There may be other references, too

Activity

  1. linear-code commented on Sep 29, 2026

    @linear-code
  2. added a commit that references this issue on Sep 30, 2026
    f340fbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DocsDocumentation content issues

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions