pub enum TracePropagationTarget {
Host(String),
Pattern(Regex),
}Expand description
One entry in Configuration.trace_propagation_targets. Build one with .into() from a &str
or String (a host) or a regex::Regex:
forge_ops_tracker::init(|c| {
c.trace_propagation_targets = Some(vec![
"example.com".into(),
regex::Regex::new(r"^internal-\d+\.corp$").unwrap().into(),
]);
});Variants§
Host(String)
Matches this host and its subdomains on a dot boundary, ignoring case and a leading dot.
Pattern(Regex)
Searched for anywhere in the lowercased host.
Trait Implementations§
Source§impl Clone for TracePropagationTarget
impl Clone for TracePropagationTarget
Source§impl Debug for TracePropagationTarget
impl Debug for TracePropagationTarget
Source§impl From<&str> for TracePropagationTarget
impl From<&str> for TracePropagationTarget
Source§impl From<Regex> for TracePropagationTarget
impl From<Regex> for TracePropagationTarget
Auto Trait Implementations§
impl Freeze for TracePropagationTarget
impl RefUnwindSafe for TracePropagationTarget
impl Send for TracePropagationTarget
impl Sync for TracePropagationTarget
impl Unpin for TracePropagationTarget
impl UnsafeUnpin for TracePropagationTarget
impl UnwindSafe for TracePropagationTarget
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