Expand description
Event normalization and processing.
Modules§
- breakdowns
- Computation of breakdowns from event data.
- contexts
- Computation and normalization of contexts from event data.
- nel
- Contains helper function for NEL reports.
- replay
- Validation and normalization of
Replay
events. - request
- Normalization of the
Request
interface. - span
- Span normalization logic.
- user_
agent - Generate context data from user agent and client hints.
- utils
- Deprecated. Utilities for extracting common event fields.
Structs§
- Borrowed
Span OpDefaults - Borrowed version of
SpanOpDefaults
. - Breakdowns
Config - Configuration for computing breakdowns from data in the event.
- Builtin
Measurement Key - Defines a builtin measurement.
- Client
Hints - The client hint variable names mirror the name of the “SEC-CH” headers.
- Clock
Drift Processor - Corrects clock drift based on the sender’s and receivers timestamps.
- Combined
Measurements Config - Container for global and project level
MeasurementsConfig
. The purpose is to handle the merging logic. - Event
Validation Config - Configuration for
validate_event
. - GeoIp
Lookup - A geo ip lookup helper based on maxmind db files.
- Measurements
Config - Configuration for measurements normalization.
- Model
Cost - A single mapping of (AI model ID, input/output, cost)
- Model
Costs - A mapping of AI model types (like GPT-4) to their respective costs.
- Normalization
Config - Configuration for
normalize_event
. - Performance
Score Config - Defines the performance configuration for the project.
- Performance
Score Profile - Defines a profile for performance score.
- Performance
Score Weighted Component - Defines a weighted component for a performance score.
- RawUser
Agent Info - A container housing both the user-agent string and the client hint headers.
- Remove
Other Processor - Removes unknown, internal and deprecated fields from a payload.
- Schema
Processor - Validates constraints such as empty strings or arrays and invalid characters.
- Span
Description Rule - The rule describes how span descriptions should be changed.
- Span
Description Rule Scope - Object containing transaction attributes the rules must only be applied to.
- Span
OpDefault Rule - A rule to infer
Span::op
from other span fields. - Span
OpDefaults - Rules used to infer
span.op
from other span fields. - Span
Operations Config - Configuration to define breakdowns based on span operation name.
- Time
Window Span - A time window declared by its start and end timestamp.
- Timestamp
Processor - Ensures an event’s timestamps are not stale.
- Transaction
Name Config - Configuration for sanitizing unparameterized transaction names.
- Transaction
Name Rule - The rule describes how transaction name should be changed.
- Transactions
Processor - Rejects transactions based on required fields.
- Trimming
Processor - Limits properties to a maximum size and depth.
Enums§
- Breakdown
Config - Configuration to define breakdown to be generated based on properties and breakdown type.
- Redaction
Rule - Describes what to do with the matched pattern.
Traits§
- From
User Agent Info - Computes a
Context
from either a user agent string and client hints.
Functions§
- apply_
transaction_ rename_ rules - Applies the rule if any found to the transaction name.
- browser_
from_ client_ hints - The sec-ch-ua field looks something like this: “Not_A Brand”;v=“99”, “Google Chrome”;v=“109”, “Chromium”;v=“109” The order of the items are randomly shuffled.
- is_
high_ cardinality_ sdk - Returns
true
if the event’s transaction name is known to contain unsanitized values. - is_
valid_ platform - Returns
true
if the given platform string is a known platform identifier. - normalize_
app_ start_ spans - Replaces snake_case app start spans op with dot.case op.
- normalize_
breakdowns - Computes breakdowns for an event based on the given configuration.
- normalize_
event - Normalizes an event.
- normalize_
measurements - Ensure only valid measurements are ingested.
- normalize_
performance_ score - Computes performance score measurements for an event.
- normalize_
transaction_ name - Apply parametrization to transaction.
- normalize_
user_ agent - Generates context data from client hints or user agent.
- normalize_
user_ agent_ info_ generic - Low-level version of
normalize_user_agent
operating on parts. - set_
default_ transaction_ source - Set a default transaction source if it is missing, but only if the transaction name was
extracted as a metrics tag.
This behavior makes it possible to identify transactions for which the transaction name was
not extracted as a tag on the corresponding metrics, because
source == null <=> transaction name == null
See
relay_server::metrics_extraction::transactions::get_transaction_name
. - validate_
environment - Given a string checks if the environment name is generally valid.
- validate_
event - Validates an event.
- validate_
release - Given a string checks if the release is generally valid.
- validate_
span - Validates a span.
Type Aliases§
- GeoIp
Error - An error in the
GeoIpLookup
.