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 length of a mobile span or measurement in milliseconds.
- MOBILE_
SDKS - Used to decide when to extract mobile-specific tags.
Functions§
- calculate_
cdf_ score - Calculates a log-normal CDF score based on a log-normal with a specific 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 - Compute the transaction event’s “user” tag as close as possible to how users are determined in
the transactions dataset in Snuba. This should produce the exact same user counts as the
user
column in Discover for Transactions, barring: - http_
status_ code_ from_ span - Extract the HTTP status code from the span data.