Skip to content

docs(rust-sdk): Document metrics#17545

Open
szokeasaurusrex wants to merge 1 commit intomasterfrom
szokeasaurusrex/metrics-rust
Open

docs(rust-sdk): Document metrics#17545
szokeasaurusrex wants to merge 1 commit intomasterfrom
szokeasaurusrex/metrics-rust

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

Closes #16556
Closes RUST-165

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Apr 29, 2026 2:15pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Apr 29, 2026 2:15pm

Request Review

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 29, 2026

@codeowner-assignment codeowner-assignment Bot requested a review from a team April 29, 2026 14:05
@szokeasaurusrex szokeasaurusrex requested review from giortzisg and lcian and removed request for a team April 29, 2026 14:05
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review April 29, 2026 14:05
@@ -0,0 +1,38 @@
### Enabling Metrics

To capture metrics, you need to compile the `sentry` crate with the `metrics` feature and set [`enable_metrics: true`](https://docs.rs/sentry/0.48.0/sentry/struct.ClientOptions.html#structfield.enable_metrics) in the [`ClientOptions`](https://docs.rs/sentry/0.48.0/sentry/struct.ClientOptions.html).
Copy link
Copy Markdown
Member

@lcian lcian Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To capture metrics, you need to compile the `sentry` crate with the `metrics` feature and set [`enable_metrics: true`](https://docs.rs/sentry/0.48.0/sentry/struct.ClientOptions.html#structfield.enable_metrics) in the [`ClientOptions`](https://docs.rs/sentry/0.48.0/sentry/struct.ClientOptions.html).
To capture metrics, you need to compile the `sentry` crate with the `metrics` feature and set [`enable_metrics: true`](https://docs.rs/sentry/latest/sentry/struct.ClientOptions.html#structfield.enable_metrics) in the [`ClientOptions`](https://docs.rs/sentry/latest/sentry/struct.ClientOptions.html).

Seems like a nice idea to link to the API docs (it's not a pattern I've been using before), however I would suggest to link to the latest so that the user is brought to the latest release every time.

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.

Document Rust trace metrics support and API

2 participants