pub enum AutoInferSetting {
Auto,
Never,
Legacy,
}
Expand description
Used to control the IP inference setting in relay. This is used as an alternative to magic values like {{auto}} in the user.ip_address field.
Variants§
Auto
Derive the IP address from the connection information.
Never
Do not derive the IP address, keep what was being sent by the client.
Legacy
Enables the legacy IP inference behaviour.
The legacy behavior works mainly by inspecting the content of user.ip_address
and
decides based on the value.
Unfortunately, not all platforms are treated equals so there are exceptions for
javascript
, cocoa
and objc
.
If the value in ip_address
is {{auto}}
, it will work the
same as AutoInferSetting::Auto
. This is true for all platforms.
If the value in ip_address
is None
, it will only infer the IP address if a
REMOTE_ADDR
header is sent in the request payload of the event.
NOTE: Setting ip_address
to None
will behave the same as setting it to {{auto}}
for javascript
, cocoa
and objc
.
Implementations§
Source§impl AutoInferSetting
impl AutoInferSetting
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns a string representation for AutoInferSetting
.
Trait Implementations§
Source§impl Clone for AutoInferSetting
impl Clone for AutoInferSetting
Source§fn clone(&self) -> AutoInferSetting
fn clone(&self) -> AutoInferSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AutoInferSetting
impl Debug for AutoInferSetting
Source§impl Default for AutoInferSetting
impl Default for AutoInferSetting
Source§fn default() -> AutoInferSetting
fn default() -> AutoInferSetting
Source§impl Empty for AutoInferSetting
impl Empty for AutoInferSetting
Source§impl FromStr for AutoInferSetting
impl FromStr for AutoInferSetting
Source§impl FromValue for AutoInferSetting
impl FromValue for AutoInferSetting
Source§impl IntoValue for AutoInferSetting
impl IntoValue for AutoInferSetting
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Source§fn serialize_payload<S>(
&self,
s: S,
_: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
s: S,
_: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Source§impl PartialEq for AutoInferSetting
impl PartialEq for AutoInferSetting
Source§impl ProcessValue for AutoInferSetting
impl ProcessValue for AutoInferSetting
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
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,
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,
impl Copy for AutoInferSetting
impl StructuralPartialEq for AutoInferSetting
Auto Trait Implementations§
impl Freeze for AutoInferSetting
impl RefUnwindSafe for AutoInferSetting
impl Send for AutoInferSetting
impl Sync for AutoInferSetting
impl Unpin for AutoInferSetting
impl UnwindSafe for AutoInferSetting
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
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>
T
in a tonic::Request