-
Notifications
You must be signed in to change notification settings - Fork 0
Sentry
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions
Feature flag: sentry → optional dep sentry = 0.48.
When enabled, crate root re-exports the full Sentry SDK:
#[cfg(feature = "sentry")]
pub use sentry;- Enable feature on direct dependency (transitive features do not auto-activate).
- Init guard early; keep alive for process lifetime.
#[cfg(feature = "sentry")]
let _sentry_guard = cortex_tensor::sentry::init((
"https://<key>@sentry.io/<project>",
cortex_tensor::sentry::ClientOptions {
release: cortex_tensor::sentry::release_name!(),
environment: Some("production".into()),
..Default::default()
},
));When the feature is off, the re-export is absent.
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: 37c5a21 (main)