Skip to main content

Sentry

Sentry Conventions

The Sentry Conventions are a set of semantic conventions for naming and describing events in Sentry.

PyPI version PyPI pyversions Discord Chat

GitHub Actions Codecov

The package exports:

  • attributes.ATTRIBUTE_NAMES: contains constants for all attribute names and their types, as defined in the Sentry semantic conventions
  • attributes.Attributes: represents a bag of typed attributes
  • attributes.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:

  1. the attribute heading the chain, followed by the names it is exposed as in Sentry search
  2. its non-deprecated aliases, each followed by their own search names
  3. 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.29.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sentry-conventions 0.29.0
File Interpreter ABI Platform Actions
sentry_conventions-0.29.0-py3-none-any.whl Python 3 none any Details for sentry_conventions-0.29.0-py3-none-any.whl

Release files / sentry_conventions-0.29.0-py3-none-any.whl

Download URL sentry_conventions-0.29.0-py3-none-any.whl
Size 156.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79372898935616667a8bf1a1840a97426fe980922ed8938b44a2457d1106a7c4
BLAKE2b-256 checksum
How to use checksums
84def09cc33bc95fc2d66a4537c532f3d19f163e73fb6003112fe8f514d66281
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.29.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.

Release history Release notifications | RSS feed

This release

0.29.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page