pub struct ContainerMetadata {
pub version: Option<u16>,
pub ingest_settings: Option<IngestSettings>,
}Expand description
Metadata supplied with an item container containing logs.
See also: https://develop.sentry.dev/sdk/telemetry/logs/#version-and-ingest_settings-properties.
§Versions
§Behaviour
Different versions influence how logs are normalized and processed:
| Version | client ip | user agent |
|---|---|---|
| none | {{auto}} | always |
| 2 | {{auto}}, settings | settings |
For example, in version 2:
- the client ip is inferred if either the client address attribute is
set to
{{auto}}or the ingest settings specifyinfer_ipasauto. - the user agent is only inferred if ingest settings specify
infer_user_agentasauto, while for older SDKs which do not send any ingest settings, the user agent is always automatically inferred.
§Schema Changelog
| Version | Changes |
|---|---|
| 2 | Adds ingest_settings |
Fields§
§version: Option<u16>The metadata version
The version influences how logs are processed during ingestion.
Currently supported versions:
none: no processing changes2: adds support foringest_settings
ingest_settings: Option<IngestSettings>Settings controlling parts of the ingestion of individual logs.
Supported since version 2.
Trait Implementations§
Source§impl Clone for ContainerMetadata
impl Clone for ContainerMetadata
Source§fn clone(&self) -> ContainerMetadata
fn clone(&self) -> ContainerMetadata
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 ContainerMetadata
impl Debug for ContainerMetadata
Source§impl<'de> Deserialize<'de> for ContainerMetadata
impl<'de> Deserialize<'de> for ContainerMetadata
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 ContainerMetadata
impl RefUnwindSafe for ContainerMetadata
impl Send for ContainerMetadata
impl Sync for ContainerMetadata
impl Unpin for ContainerMetadata
impl UnsafeUnpin for ContainerMetadata
impl UnwindSafe for ContainerMetadata
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