Skip to main content

Module eap

Module eap 

Source
Expand description

Event normalization and processing for attribute (EAP) based payloads.

A central place for all modifications/normalizations for attributes.

Modules§

time
Time normalization for EAP items.
trace_metric
Normalizations specific to trace metrics.

Structs§

ClientUserAgentInfo
Client user agent information.
TrimmingProcessor
Processor for trimming EAP items (logs, V2 spans).

Enums§

Ingress
How an EAP item entered Relay.
Pipeline
The pipeline through which an item went in Relay.

Traits§

AttributesLike
An attribute collection which is keyed by an attribute key defined in relay_conventions.

Functions§

attribute_size
Calculates the size of a single attribute.
attributes_size
Calculates the canonical size of Attributes.
normalize_ai
Normalizes AI attributes.
normalize_attribute_names
Normalizes deprecated attributes according to sentry-conventions.
normalize_attribute_types
Normalizes/validates all attribute types.
normalize_attribute_values
Normalizes the values of a set of attributes if present in the span.
normalize_client_address
Normalizes the client address into Attributes.
normalize_client_sample_rate
Normalizes the client sample rate attribute to be in the range (0, 1].
normalize_dsc
Normalizes the dynamic sampling context into Attributes.
normalize_inject_client_address
Injects a client ip address into Attributes.
normalize_mobile_attributes
Normalizes mobile-specific attributes on a span.
normalize_mobile_measurements
Compute additional measurements for mobile spans.
normalize_pipeline_attributes
Writes ingress and pipeline into SENTRY__RELAY__INGRESS and SENTRY__RELAY__PIPELINE, respectively.
normalize_received
Adds the received time to the attributes.
normalize_segment_name
Normalize the SENTRY__SEGMENT__NAME attribute (aka the transaction) by running normalize_transaction_name on it.
normalize_sentry_description
Normalizes a V2 span’s SENTRY__DESCRIPTION attribute.
normalize_sentry_op
Infers the sentry.op attribute and inserts it into Attributes if not already set.
normalize_span_category
Infers the sentry.category attribute and inserts it into attributes if not already set. The category is derived from the span operation or other span attributes.
normalize_span_name
Normalizes a V2 span’s name.
normalize_trace_status
Sets the sentry.trace.status attribute on segment spans.
normalize_user_agent
Normalizes the user agent/client information into Attributes.
normalize_user_geo
Normalizes the user’s geographical information into Attributes.
normalize_web_vital_span_segment
Makes sure web vital spans are not identified with segments.
value_size
Recursively calculates the size of a Value, using the rules described in attributes_size.
write_legacy_attributes
Double writes sentry conventions attributes into legacy attributes.