use std::fmt;
#[cfg(feature = "logs")]
use crate::protocol::Log;
use crate::protocol::{Context, Event, Level, User, Value};
use crate::TransactionOrSpan;
#[derive(Default)]
pub struct ScopeGuard;
impl fmt::Debug for ScopeGuard {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "ScopeGuard")
}
}
#[derive(Debug, Clone)]
pub struct Scope;
impl Scope {
pub fn clear(&mut self) {
minimal_unreachable!();
}
pub fn set_level(&mut self, level: Option<Level>) {
let _level = level;
minimal_unreachable!();
}
pub fn set_fingerprint(&mut self, fingerprint: Option<&[&str]>) {
let _fingerprint = fingerprint;
minimal_unreachable!();
}
pub fn set_transaction(&mut self, transaction: Option<&str>) {
let _transaction = transaction;
minimal_unreachable!();
}
pub fn set_user(&mut self, user: Option<User>) {
let _user = user;
minimal_unreachable!();
}
pub fn set_tag<V: ToString>(&mut self, key: &str, value: V) {
let _key = key;
let _value = value;
minimal_unreachable!();
}
pub fn remove_tag(&mut self, key: &str) {
let _key = key;
minimal_unreachable!();
}
pub fn set_context<C: Into<Context>>(&mut self, key: &str, value: C) {
let _key = key;
let _value = value;
minimal_unreachable!();
}
pub fn remove_context(&mut self, key: &str) {
let _key = key;
minimal_unreachable!();
}
pub fn set_extra(&mut self, key: &str, value: Value) {
let _key = key;
let _value = value;
minimal_unreachable!();
}
pub fn remove_extra(&mut self, key: &str) {
let _key = key;
minimal_unreachable!();
}
pub fn add_event_processor<F>(&mut self, f: F)
where
F: Fn(Event<'static>) -> Option<Event<'static>> + Send + Sync + 'static,
{
let _f = f;
minimal_unreachable!();
}
pub fn apply_to_event(&self, event: Event<'static>) -> Option<Event<'static>> {
let _event = event;
minimal_unreachable!();
}
#[cfg(feature = "logs")]
pub fn apply_to_log(&self, log: &mut Log) {
let _log = log;
minimal_unreachable!();
}
pub fn set_span(&mut self, span: Option<TransactionOrSpan>) {
let _ = span;
minimal_unreachable!();
}
pub fn get_span(&self) -> Option<TransactionOrSpan> {
None
}
}