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.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.36.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.36.0
File Interpreter ABI Platform Actions
sentry_conventions-0.36.0-py3-none-any.whl Python 3 none any Details for sentry_conventions-0.36.0-py3-none-any.whl

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

Download URL sentry_conventions-0.36.0-py3-none-any.whl
Size 163.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
052094cdd4571ca95d81bfa862be8940db1cdf262ee0d192bc031a40e7f6657c
BLAKE2b-256 checksum
How to use checksums
1631e5af8143ca4c0dc517b1dc5328639fc97ae6325b6f9fa2f4610542d05a55
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.36.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.36.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