Sentry Conventions
The Sentry Conventions are a set of semantic conventions for naming and describing events in Sentry.
The package exports:
attributes.ATTRIBUTE_NAMES: contains constants for all attribute names and their types, as defined in the Sentry semantic conventionsattributes.Attributes: represents a bag of typed attributesattributes.ATTRIBUTE_METADATA: provides metadata about attributes, such as their type, scrubbing definition, deprecation info, and lookup keys
Attribute Key Chains
An attribute's value may be readable under several keys: its own, the names Sentry search exposes it as, and the deprecated attributes it replaces. ATTRIBUTE_METADATA[key].keys lists all of them, most preferred first:
from sentry_conventions.attributes import ATTRIBUTE_METADATA, ATTRIBUTE_NAMES
ATTRIBUTE_METADATA[ATTRIBUTE_NAMES.HTTP_REQUEST_METHOD].keys
# ("http.request.method", "http.method", "http.request_method", "method")
The order within a chain is:
- the attribute heading the chain, followed by the names it is exposed as in Sentry search
- its non-deprecated aliases, each followed by their own search names
- the deprecated attributes it replaces, in alphabetical order, each followed by their own search names
Deprecated attributes are only added to a chain if their status is normalize or backfill.
If an attribute is deprecated with another status or status null, it's own keys array will not contain any
replacing attribute. Therefore, there's no guarantee for a stable attribute in a key chain.
Metadata
Release files for sentry-conventions 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentry_conventions-0.28.0-py3-none-any.whl | Python 3 | none | any | Details for sentry_conventions-0.28.0-py3-none-any.whl |
Release files / sentry_conventions-0.28.0-py3-none-any.whl
| Download URL | sentry_conventions-0.28.0-py3-none-any.whl |
|---|---|
| Size | 155.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d37a43c27c9931fd447428a6e0cdbd346b62bbdf585e896890080c0421f969d
|
|
BLAKE2b-256 checksum How to use checksums |
39353bee2ed1d7b50434f58316ed8aefc3b1a4bb3ff58595d583f21bbc7082f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for sentry-conventions 0.28.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.