pub struct V2ProfileChunk {
pub measurements: BTreeMap<String, ChunkMeasurement>,
pub metadata: ProfileMetadata,
pub profile: ProfileData,
}Fields§
§measurements: BTreeMap<String, ChunkMeasurement>§metadata: ProfileMetadataThis struct contains all the metadata related to the chunk but all fields are expected to be at the top-level of the object.
profile: ProfileDataImplementations§
Source§impl ProfileChunk
impl ProfileChunk
Sourcepub fn parse(payload: &[u8]) -> Result<Self, ProfileError>
pub fn parse(payload: &[u8]) -> Result<Self, ProfileError>
Parses a ProfileChunk from a JSON payload.
Sourcepub fn normalize(&mut self) -> Result<(), ProfileError>
pub fn normalize(&mut self) -> Result<(), ProfileError>
Normalizes the ProfileChunk.
Sourcepub fn serialize(&self) -> Result<Bytes, ProfileError>
pub fn serialize(&self) -> Result<Bytes, ProfileError>
Serializes the ProfileChunk into its JSON form.
Trait Implementations§
Source§impl Debug for ProfileChunk
impl Debug for ProfileChunk
Source§impl<'de> Deserialize<'de> for ProfileChunk
impl<'de> Deserialize<'de> for ProfileChunk
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
Source§impl Filterable for ProfileChunk
impl Filterable for ProfileChunk
Source§fn exceptions(&self) -> Option<&Values<Exception>>
fn exceptions(&self) -> Option<&Values<Exception>>
The exception values of the item. Only for error events.
Source§fn transaction(&self) -> Option<&str>
fn transaction(&self) -> Option<&str>
The transaction name. Only for transaction events.
Source§fn url(&self) -> Option<Url>
fn url(&self) -> Option<Url>
The URL from which the request originates. Used for localhost filtering.
Source§fn user_agent(&self) -> UserAgent<'_>
fn user_agent(&self) -> UserAgent<'_>
The user agent of the client that sent the data.
Source§impl Getter for ProfileChunk
impl Getter for ProfileChunk
Source§impl ProfileChunk for ProfileChunk
impl ProfileChunk for ProfileChunk
Source§fn profile_type(&self) -> ProfileType
fn profile_type(&self) -> ProfileType
Returns the
ProfileType of this profile chunk. Read moreAuto Trait Implementations§
impl Freeze for ProfileChunk
impl RefUnwindSafe for ProfileChunk
impl Send for ProfileChunk
impl Sync for ProfileChunk
impl Unpin for ProfileChunk
impl UnsafeUnpin for ProfileChunk
impl UnwindSafe for ProfileChunk
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
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].