pub struct TransactionMetricsConfig {
pub version: u16,
pub extract_custom_tags: BTreeSet<String>,
pub custom_measurements: CustomMeasurementConfig,
pub deprecated1: AcceptTransactionNames,
}
Expand description
Configuration for extracting metrics from transaction payloads.
Fields§
§version: u16
The required version to extract transaction metrics.
Custom event tags that are transferred from the transaction to metrics.
custom_measurements: CustomMeasurementConfig
Deprecated in favor of top-level config field. Still here to be forwarded to external relays.
deprecated1: AcceptTransactionNames
Deprecated. Defines whether URL transactions should be considered low cardinality. Keep this around for external Relays.
Implementations§
source§impl TransactionMetricsConfig
impl TransactionMetricsConfig
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true
if metrics extraction is enabled and compatible with this Relay.
Trait Implementations§
source§impl Clone for TransactionMetricsConfig
impl Clone for TransactionMetricsConfig
source§fn clone(&self) -> TransactionMetricsConfig
fn clone(&self) -> TransactionMetricsConfig
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 TransactionMetricsConfig
impl Debug for TransactionMetricsConfig
source§impl Default for TransactionMetricsConfig
impl Default for TransactionMetricsConfig
source§fn default() -> TransactionMetricsConfig
fn default() -> TransactionMetricsConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionMetricsConfigwhere
TransactionMetricsConfig: Default,
impl<'de> Deserialize<'de> for TransactionMetricsConfigwhere
TransactionMetricsConfig: 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
Auto Trait Implementations§
impl Freeze for TransactionMetricsConfig
impl RefUnwindSafe for TransactionMetricsConfig
impl Send for TransactionMetricsConfig
impl Sync for TransactionMetricsConfig
impl Unpin for TransactionMetricsConfig
impl UnwindSafe for TransactionMetricsConfig
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
)