pub struct TelemetryPolicy {
pub otlp_enabled: bool,
pub otlp_endpoint: Option<String>,
pub service_name: String,
}Available on crate feature
enterprise only.Expand description
Fields§
§otlp_enabled: boolWhether OTLP export is enabled.
otlp_endpoint: Option<String>OTLP endpoint, e.g. http://otel-collector:4317.
service_name: StringService name attached to telemetry records.
Trait Implementations§
Source§impl Clone for TelemetryPolicy
impl Clone for TelemetryPolicy
Source§fn clone(&self) -> TelemetryPolicy
fn clone(&self) -> TelemetryPolicy
Returns a duplicate 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 TelemetryPolicy
impl Debug for TelemetryPolicy
Source§impl Default for TelemetryPolicy
impl Default for TelemetryPolicy
Source§fn default() -> TelemetryPolicy
fn default() -> TelemetryPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelemetryPolicy
impl<'de> Deserialize<'de> for TelemetryPolicy
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 TelemetryPolicy
impl PartialEq for TelemetryPolicy
Source§impl Serialize for TelemetryPolicy
impl Serialize for TelemetryPolicy
impl Eq for TelemetryPolicy
impl StructuralPartialEq for TelemetryPolicy
Auto Trait Implementations§
impl Freeze for TelemetryPolicy
impl RefUnwindSafe for TelemetryPolicy
impl Send for TelemetryPolicy
impl Sync for TelemetryPolicy
impl Unpin for TelemetryPolicy
impl UnsafeUnpin for TelemetryPolicy
impl UnwindSafe for TelemetryPolicy
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,
§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
Checks if this value is equivalent to the given key. Read more
§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.