---
title: "Naming is hard, semantics are hard(er): Inside Sentry Conventions"
description: "Sentry Conventions is a superset of OpenTelemetry Semantic Conventions that defines attribute names, types, scrubbing policies, deprecation chains, span ops, span naming rules and metric specs across Sentry's ~100 SDKs, its Relay ingestion service, Snuba querying and the product UI."
url: "https://swe.quest/articles/naming-is-hard-semantics-are-hard-er-inside-sentry-conventions-2c2ecdaa4018c90f"
canonical: "https://blog.sentry.io/sentry-conventions/"
source: "Sentry"
published: "2026-11-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["observability","schema-migrations","api-design"]
---

# Naming is hard, semantics are hard(er): Inside Sentry Conventions

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-11-16, 7 min read, Case study. Original: [https://blog.sentry.io/sentry-conventions/](https://blog.sentry.io/sentry-conventions/)

## Summary

Sentry Conventions is a superset of OpenTelemetry Semantic Conventions that defines attribute names, types, scrubbing policies, deprecation chains, span ops, span naming rules and metric specs across Sentry's ~100 SDKs, its Relay ingestion service, Snuba querying and the product UI. The spec grew from about 300 to over 900 attributes in a year. It ships as NPM, PyPI and Rust packages so SDKs avoid hard-coded strings. Relay uses it to scrub data and infer span names and descriptions, and Snuba coalesces deprecated and current attributes so queries like \`http.request.method\` also match the old \`http.method\`. The main lessons are to specify attributes before shipping them, treat deprecations as part of the spec, and test conventions automatically for consistency.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- OpenTelemetry basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- spans and tracing ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Sentry Conventions, OpenTelemetry Semantic Conventions, Relay, Snuba, OTLP, Sentry SDK

## Related posts

- [How Datadog resolves evolving OpenTelemetry semantics at query time](https://swe.quest/articles/how-datadog-resolves-evolving-opentelemetry-semantics-at-query-time-1265063c6021457a.md): Datadog Engineering · 2026-11-19 · Medium · 8 min read · Observability, System design, Testing
  Datadog's Semantic Core is a knowledge graph that encodes equivalences between Datadog-native and OpenTelemetry metrics and span attributes, including deprecation chains across OTel convention versions.
- [Sentry JavaScript SDK v11 adds tracing for all JS platforms](https://swe.quest/articles/sentry-javascript-sdk-v11-adds-tracing-for-all-js-platforms-2ee0190e0544fb8c.md): Sentry · 2026-10-09 · Medium · 12 min read · Observability, JavaScript, Build systems, Runtimes & VMs
  Sentry's JavaScript SDK v11 replaces OpenTelemetry export-patching instrumentations (require-in-the-middle, import-in-the-middle, shimmer) with a source-code transformer that injects node:diagnostics\_channel tracingChannel calls into library functions, plus integrations that subscribe to those channels and emit Sentry spans.
- [Making Rust observability reliable at scale with OpenTelemetry](https://swe.quest/articles/making-rust-observability-reliable-at-scale-with-opentelemetry-93edfa18e478ae5a.md): Datadog Engineering · 2026-09-01 · Medium · 10 min read · Observability, Rust, Open source
  Datadog built dd-trace-rs, an opinionated Rust tracer on top of the OpenTelemetry Rust SDK, to fix fragmented traces, inconsistent sampling and context loss across Rust services.
- [Why (and how) GitHub is adopting OpenTelemetry](https://swe.quest/articles/why-and-how-github-is-adopting-opentelemetry-0b6fb60f67930892.md): GitHub Engineering · 2021-05-26 · Medium · 4 min read · Observability, Ruby
  GitHub is standardizing on OpenTelemetry to replace a patchwork of statsd dialects, syslog-format logs and OpenTracing traces that made cross-signal correlation hard and forced repeated instrumentation work.
- [Observability as a superpower](https://swe.quest/articles/observability-as-a-superpower-5609b41c95a2309f.md): incident.io · 2024-11-04 · Medium · 8 min read · Observability, Go, Debugging, Incidents & postmortems
  Distributed tracing with OpenTelemetry lets incident.io engineers spot bugs before customers report them, by showing each request's route as a tree of timed spans that exposes slow steps, N+1 queries and duplicate calls.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
