Struct sentry::Scope [] [src]

pub struct Scope { /* fields omitted */ }

Holds contextual data for the current scope.

The scope is an object that can cloned efficiently and stores data that is locally relevant to an event. For instance the scope will hold recorded breadcrumbs and similar information.

The scope can be interacted with in two ways:

  1. the scope is routinely updated with information by functions such as add_breadcrumb which will modify the currently top-most scope.
  2. the topmost scope can also be configured through the configure_scope method.

Note that the scope can only be modified but not inspected. Only the client can use the scope to extract information currently.

Methods

impl Scope
[src]

[src]

Clear the scope.

By default a scope will inherit all values from the higher scope. In some situations this might not be what a user wants. Calling this method will wipe all data contained within.

[src]

Sets the fingerprint.

[src]

Sets the transaction.

[src]

Sets the user for the current scope.

[src]

Sets a tag to a specific value.

[src]

Removes a tag.

[src]

Sets a context for a key.

[src]

Removes a context for a key.

[src]

Sets a extra to a specific value.

[src]

Removes a extra.

Trait Implementations

impl Debug for Scope
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Scope
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Scope

impl Sync for Scope