pub struct ContainerMetadata {
pub version: Option<u16>,
pub ingest_settings: Option<IngestSettings>,
}Expand description
Metadata supplied with an item container containing spans.
See also: https://develop.sentry.dev/sdk/telemetry/spans/span-protocol/#version-and-ingest_settings-properties.
§Versions
§Behaviour
Different versions influence how spans are normalized and processed:
| Version | client ip | user agent |
|---|---|---|
| none | {{auto}} | never |
| 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 specify infer_ip to auto.
The user agent is only considered if ingest settings specify infer_user_agent as auto.
§Schema Changelog
| Version | Changes |
|---|---|
| 2 | Adds ingest_settings |
Fields§
§version: Option<u16>The metadata version
The version influences how spans are processed during ingestion.
ingest_settings: Option<IngestSettings>Settings controlling parts of the ingestion of individual spans.
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