Skip to main content

Module utils

Module utils 

Source
Expand description

Deprecated. Utilities for extracting common event fields.

This utility module is being phased out. Functionality in this module should be moved to the specific normalization file requiring this data access.

Constants§

MAIN_THREAD_NAME
Allowed value for main thread name.
MAX_DURATION_MOBILE_MS
Maximum duration of a mobile measurement in milliseconds.
MOBILE_SDKS
Used to decide when to extract mobile-specific tags.

Functions§

calculate_cdf_score
Computes the cumulative distribution function of a log-normal distribution with the given p10 and p50.
extract_http_status_code
Extracts the HTTP status code.
extract_transaction_op
Returns a normalized op from the given trace context.
get_event_user_tag
Computes the transaction event’s “user” tag from the event’s user.
http_status_code_from_span
Extract the HTTP status code from the span data.