pub struct TracingSampleRule {
pub protocol: String,
pub request_types: HashSet<String>,
pub ratio: f64,
}
Expand description
Determine the sampling rate of a span according to the rules
provided in RuleSampler
.
For spans that do not hit any rules
, the default_ratio
is used.
Fields§
§protocol: String
§request_types: HashSet<String>
§ratio: f64
Implementations§
Trait Implementations§
source§impl Clone for TracingSampleRule
impl Clone for TracingSampleRule
source§fn clone(&self) -> TracingSampleRule
fn clone(&self) -> TracingSampleRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TracingSampleRule
impl Debug for TracingSampleRule
source§impl Default for TracingSampleRule
impl Default for TracingSampleRule
source§fn default() -> TracingSampleRule
fn default() -> TracingSampleRule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TracingSampleRulewhere
TracingSampleRule: Default,
impl<'de> Deserialize<'de> for TracingSampleRulewhere
TracingSampleRule: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TracingSampleRule
impl PartialEq for TracingSampleRule
source§impl Serialize for TracingSampleRule
impl Serialize for TracingSampleRule
impl Eq for TracingSampleRule
Auto Trait Implementations§
impl Freeze for TracingSampleRule
impl RefUnwindSafe for TracingSampleRule
impl Send for TracingSampleRule
impl Sync for TracingSampleRule
impl Unpin for TracingSampleRule
impl UnwindSafe for TracingSampleRule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request