How Sentry Conventions Keep Telemetry Attributes Aligned
Brief
Sentry Conventions provide a shared specification for telemetry semantics across the company's SDKs, ingestion pipeline and product. They also help Sentry handle deprecated attributes without losing compatibility in queries and features.
What the conventions define
- Specifications cover attribute names, types, descriptions, scrubbing policies and deprecation replacements, as well as span operations, span naming rules and metric definitions.
- Sentry says its conventions grew from roughly 300 attributes a year ago to more than 900 today, partly by documenting attributes its SDKs already sent.
How they are used
- SDKs use conventions for attribute names and span operations; Relay applies scrubbing rules and infers span descriptions or names.
- Snuba and the backend coalesce deprecated and current attribute names, so querying either can return data sent under the other.
- Sentry publishes conventions packages for NPM, PyPI and Rust, plus a searchable conventions website.
Lessons from the work
- Sentry now adds attributes to conventions and agrees on their names and semantics before shipping them in SDKs.
- Deprecations specify replacements and migration strategies, while tests check specifications for consistency, types and deprecated references.
Generated by AI from the original article. Check the source for full details.