#[repr(i8)]pub enum DataCategory {
Show 35 variants
Default = 0,
Error = 1,
Transaction = 2,
Security = 3,
Attachment = 4,
Session = 5,
Profile = 6,
Replay = 7,
TransactionProcessed = 8,
TransactionIndexed = 9,
Monitor = 10,
ProfileIndexed = 11,
Span = 12,
MonitorSeat = 13,
UserReportV2 = 14,
MetricBucket = 15,
SpanIndexed = 16,
ProfileDuration = 17,
ProfileChunk = 18,
MetricSecond = 19,
DoNotUseReplayVideo = 20,
Uptime = 21,
AttachmentItem = 22,
LogItem = 23,
LogByte = 24,
ProfileDurationUi = 25,
ProfileChunkUi = 26,
SeerAutofix = 27,
SeerScanner = 28,
PreventUser = 29,
PreventReview = 30,
SizeAnalysis = 31,
InstallableBuild = 32,
TraceMetric = 33,
Unknown = -1,
}
Expand description
Classifies the type of data that is being ingested.
Variants§
Default = 0
Reserved and unused.
SDK rate limiting behavior: ignore.
Error = 1
Error events and Events with an event_type
not explicitly listed below.
SDK rate limiting behavior: apply to the entire envelope if it contains an item type event
.
Transaction = 2
Transaction events.
SDK rate limiting behavior: apply to the entire envelope if it contains an item transaction
.
Security = 3
Events with an event type of csp
, hpkp
, expectct
and expectstaple
.
SDK rate limiting behavior: ignore.
Attachment = 4
An attachment. Quantity is the size of the attachment in bytes.
SDK rate limiting behavior: apply to all attachments.
Session = 5
Session updates. Quantity is the number of updates in the batch.
SDK rate limiting behavior: apply to all sessions and session aggregates.
Profile = 6
Profile
This is the category for processed profiles (all profiles, whether or not we store them).
SDK rate limiting behavior: apply to all profiles.
Replay = 7
Session Replays
SDK rate limiting behavior: apply to all Session Replay data.
TransactionProcessed = 8
DEPRECATED: A transaction for which metrics were extracted.
This category is now obsolete because the Transaction
variant will represent
processed transactions from now on.
SDK rate limiting behavior: ignore.
TransactionIndexed = 9
Indexed transaction events.
This is the category for transaction payloads that were accepted and stored in full. In
contrast, transaction
only guarantees that metrics have been accepted for the transaction.
SDK rate limiting behavior: ignore.
Monitor = 10
Monitor check-ins.
SDK rate limiting behavior: apply to items of type check_in
.
ProfileIndexed = 11
Indexed Profile
This is the category for indexed profiles that will be stored later.
SDK rate limiting behavior: ignore.
Span = 12
Span
This is the category for spans from which we extracted metrics from.
SDK rate limiting behavior: apply to spans that are not sent in a transaction.
MonitorSeat = 13
Monitor Seat
Represents a monitor job that has scheduled monitor checkins. The seats are not ingested but we define it here to prevent clashing values since this data category enumeration is also used outside of Relay via the Python package.
SDK rate limiting behavior: ignore.
UserReportV2 = 14
User Feedback
Represents a User Feedback processed. Currently standardized on name UserReportV2 to avoid clashing with the old UserReport. TODO(jferg): Rename this to UserFeedback once old UserReport is deprecated.
SDK rate limiting behavior: apply to items of type ‘feedback’.
MetricBucket = 15
Metric buckets.
SDK rate limiting behavior: apply to statsd
and metrics
items.
SpanIndexed = 16
SpanIndexed
This is the category for spans we store in full.
SDK rate limiting behavior: ignore.
ProfileDuration = 17
ProfileDuration
This data category is used to count the number of milliseconds per indexed profile chunk, excluding UI profile chunks.
SDK rate limiting behavior: apply to profile chunks.
ProfileChunk = 18
ProfileChunk
This is a count of profile chunks received. It will not be used for billing but will be useful for customers to track what’s being dropped.
SDK rate limiting behavior: apply to profile chunks.
MetricSecond = 19
MetricSecond
Reserved by billing to summarize the bucketed product of metric volume and metric cardinality. Defined here so as not to clash with future categories.
SDK rate limiting behavior: ignore.
DoNotUseReplayVideo = 20
Replay Video
This is the data category for Session Replays produced via a video recording.
SDK rate limiting behavior: ignore.
Uptime = 21
This is the data category for Uptime monitors.
SDK rate limiting behavior: ignore.
AttachmentItem = 22
Counts the number of individual attachments, as opposed to the number of bytes in an attachment.
SDK rate limiting behavior: apply to attachments.
LogItem = 23
LogItem
This is the category for logs for which we store the count log events for users for measuring missing breadcrumbs, and count of logs for rate limiting purposes.
SDK rate limiting behavior: apply to logs.
LogByte = 24
LogByte
This is the category for logs for which we store log event total bytes for users.
SDK rate limiting behavior: apply to logs.
ProfileDurationUi = 25
Profile duration of a UI profile.
This data category is used to count the number of milliseconds per indexed UI profile chunk.
See also: Self::ProfileDuration
SDK rate limiting behavior: apply to profile chunks.
ProfileChunkUi = 26
UI Profile Chunk.
This data category is used to count the number of milliseconds per indexed UI profile chunk.
See also: Self::ProfileChunk
SDK rate limiting behavior: apply to profile chunks.
SeerAutofix = 27
This is the data category to count Seer Autofix run events.
SDK rate limiting behavior: ignore.
SeerScanner = 28
This is the data category to count Seer Scanner run events.
SDK rate limiting behavior: ignore.
PreventUser = 29
PreventUser
This is the data category to count the number of assigned Prevent Users.
SDK rate limiting behavior: ignore.
PreventReview = 30
PreventReview
This is the data category to count the number of Prevent review events.
SDK rate limiting behavior: ignore.
SizeAnalysis = 31
Size analysis
This is the data category to count the number of size analyses performed. ‘Size analysis’ a static binary analysis of a preprod build artifact (e.g. the .apk of an Android app or MacOS .app). When enabled there will typically be one such analysis per uploaded artifact.
SDK rate limiting behavior: ignore.
InstallableBuild = 32
InstallableBuild
This is the data category to count the number of installable builds. It counts the number of artifacts uploaded not the number of times the artifacts are downloaded for installation. When enabled there will typically be one ‘InstallableBuild’ per uploaded artifact.
SDK rate limiting behavior: ignore.
TraceMetric = 33
TraceMetric
This is the data category to count the number of trace metric items.
Unknown = -1
Any other data category not known by this Relay.
Implementations§
Source§impl DataCategory
impl DataCategory
Sourcepub fn from_name(string: &str) -> DataCategory
pub fn from_name(string: &str) -> DataCategory
Returns the data category corresponding to the given name.
Sourcepub fn is_error(self) -> bool
pub fn is_error(self) -> bool
Returns true if the DataCategory refers to an error (i.e an error event).
Sourcepub fn index_category(self) -> Option<DataCategory>
pub fn index_category(self) -> Option<DataCategory>
Returns a dedicated category for indexing if this data can be converted to metrics.
This returns None
for most data categories.
Sourcepub fn is_indexed(self) -> bool
pub fn is_indexed(self) -> bool
Returns true
if this data category is an indexed data category.
Trait Implementations§
Source§impl Clone for DataCategory
impl Clone for DataCategory
Source§fn clone(&self) -> DataCategory
fn clone(&self) -> DataCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DataCategory
impl Debug for DataCategory
Source§impl<'de> Deserialize<'de> for DataCategory
impl<'de> Deserialize<'de> for DataCategory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for DataCategory
impl Display for DataCategory
Source§impl From<EventType> for DataCategory
impl From<EventType> for DataCategory
Source§fn from(ty: EventType) -> DataCategory
fn from(ty: EventType) -> DataCategory
Source§impl FromStr for DataCategory
impl FromStr for DataCategory
Source§impl Hash for DataCategory
impl Hash for DataCategory
Source§impl Ord for DataCategory
impl Ord for DataCategory
Source§fn cmp(&self, other: &DataCategory) -> Ordering
fn cmp(&self, other: &DataCategory) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DataCategory
impl PartialEq for DataCategory
Source§impl PartialOrd for DataCategory
impl PartialOrd for DataCategory
Source§impl Serialize for DataCategory
impl Serialize for DataCategory
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<u8> for DataCategory
impl TryFrom<u8> for DataCategory
Source§type Error = UnknownDataCategory
type Error = UnknownDataCategory
Source§fn try_from(value: u8) -> Result<DataCategory, UnknownDataCategory>
fn try_from(value: u8) -> Result<DataCategory, UnknownDataCategory>
impl Copy for DataCategory
impl Eq for DataCategory
impl StructuralPartialEq for DataCategory
Auto Trait Implementations§
impl Freeze for DataCategory
impl RefUnwindSafe for DataCategory
impl Send for DataCategory
impl Sync for DataCategory
impl Unpin for DataCategory
impl UnwindSafe for DataCategory
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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>
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>
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>
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>,
Layered
].