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.27.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.27.0
File Interpreter ABI Platform
sentry_conventions-0.27.0-py3-none-any.whl Python 3 none any Details

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

Download URL sentry_conventions-0.27.0-py3-none-any.whl
Size 145.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
744a778c3c449ba70fbb1ac0c6764400673c6c18641af3cfa7451b876c2fc24c
BLAKE2b-256 checksum
How to use checksums
68d2a44c86ba1267cc7d918ce42c88d8d681925d098aa0172099dfa9f623db84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.27.0 This release

1 release file

0.26.0

1 release file

0.25.0

1 release file

0.24.0

1 release file

0.23.0

1 release file

0.22.0

1 release file

0.21.0

1 release file

0.20.0

1 release file

0.19.0

1 release file

0.17.0

1 release file

0.16.0

1 release file

0.15.1

1 release file

0.15.0

1 release file

0.14.0

1 release file

0.13.0

1 release file

0.12.0

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

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