logo
pub struct ContextIntegration { /* private fields */ }
Expand description

Adds Contexts to Sentry Events.

This integration is enabled by default in sentry and adds device, os and rust contexts to Events, and also sets a server_name if it is not already defined.

See the Contexts Interface documentation for more info.

Examples

let integration = sentry_contexts::ContextIntegration::new().add_os(false);
let _sentry = sentry::init(sentry::ClientOptions::new().add_integration(integration));

Implementations

Create a new Context Integration.

Add os context, enabled by default.

Add rust context, enabled by default.

Add device context, enabled by default.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Name of this integration. Read more

Called whenever the integration is attached to a Client.

The Integrations Event Processor Hook. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.