pub struct SentryStrTracingBuilder { /* private fields */ }Expand description
Builder for configuring SentryStr tracing integration.
§Examples
use sentrystr_tracing::SentryStrTracingBuilder;
// Basic setup
SentryStrTracingBuilder::new()
.with_generated_keys_and_relays(vec!["wss://relay.damus.io".to_string()])
.with_min_level(tracing::Level::INFO)
.init()
.await?;Implementations§
Source§impl SentryStrTracingBuilder
impl SentryStrTracingBuilder
pub fn with_config(self, config: Config) -> Self
pub fn with_secret_key_and_relays( self, secret_key: String, relays: Vec<String>, ) -> Self
pub fn with_generated_keys_and_relays(self, relays: Vec<String>) -> Self
pub fn with_direct_messaging(self, dm_config: DirectMessageConfig) -> Self
pub fn with_dm_recipient( self, recipient_pubkey: PublicKey, relays: Vec<String>, ) -> Self
pub fn with_min_level(self, level: Level) -> Self
pub fn with_fields(self, include: bool) -> Self
pub fn with_metadata(self, include: bool) -> Self
pub async fn build(self) -> Result<SentryStrLayer>
pub async fn init(self) -> Result<()>
pub async fn init_with_env_filter(self, env_filter: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SentryStrTracingBuilder
impl RefUnwindSafe for SentryStrTracingBuilder
impl Send for SentryStrTracingBuilder
impl Sync for SentryStrTracingBuilder
impl Unpin for SentryStrTracingBuilder
impl UnwindSafe for SentryStrTracingBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more