pub struct ClientSdkSettings { /* private fields */ }
Expand description
A collection of settings that are used to control behaviour in relay through flags.
The settings aim to replace magic values in fields which need special treatment,
for example {{auto}}
in the user.ip_address. The SDK would instead send infer_ip
to toggle the behaviour.
Implementations§
Source§impl ClientSdkSettings
impl ClientSdkSettings
Sourcepub fn infer_ip(&self) -> AutoInferSetting
pub fn infer_ip(&self) -> AutoInferSetting
Returns the current AutoInferSetting
setting.
NOTE: For forwards compatibility, this method has two defaults:
- If
settings.infer_ip
is missing entirely, it will default toAutoInferSetting::Legacy
. - If
settings.infer_ip
contains an invalid value, it will default toAutoInferSetting::Never
.
The reason behind this is that we don’t want to fall back to the legacy behaviour
if we add a new value to AutoInferSetting
and a relay is running an old version
which does not have the new value yet.
Trait Implementations§
Source§impl Clone for ClientSdkSettings
impl Clone for ClientSdkSettings
Source§fn clone(&self) -> ClientSdkSettings
fn clone(&self) -> ClientSdkSettings
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 ClientSdkSettings
impl Debug for ClientSdkSettings
Source§impl Empty for ClientSdkSettings
impl Empty for ClientSdkSettings
Source§impl FromObjectRef for ClientSdkSettings
impl FromObjectRef for ClientSdkSettings
Source§impl FromValue for ClientSdkSettings
impl FromValue for ClientSdkSettings
Source§impl IntoObjectRef for ClientSdkSettings
impl IntoObjectRef for ClientSdkSettings
Source§impl IntoValue for ClientSdkSettings
impl IntoValue for ClientSdkSettings
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
Source§impl PartialEq for ClientSdkSettings
impl PartialEq for ClientSdkSettings
Source§impl ProcessValue for ClientSdkSettings
impl ProcessValue for ClientSdkSettings
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for ClientSdkSettings
Auto Trait Implementations§
impl Freeze for ClientSdkSettings
impl RefUnwindSafe for ClientSdkSettings
impl Send for ClientSdkSettings
impl Sync for ClientSdkSettings
impl Unpin for ClientSdkSettings
impl UnwindSafe for ClientSdkSettings
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<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