OpenTelemetry and Sentry¶
OpenTelemetry and Sentry are not equivalent. That is why tool_otel works alongside tool_sentry instead of replacing it.
OpenTelemetry (OTel) is an open standard with SDKs and a Collector that produce and transport telemetry. It does not store or display anything: it needs a backend.
Sentry is a complete product, with a backend, a user interface, alerts and an issue workflow.
What OpenTelemetry does and Sentry does not (or does poorly)¶
Vendor neutrality: instrument once and export to any backend (Grafana Tempo, Loki and Mimir, Jaeger, Prometheus, Datadog, Honeycomb and Sentry itself).
Collector: an intermediate pipeline that does tail-based sampling, filters, removes personal data, enriches and sends to several destinations at the same time.
Infrastructure metrics: host, Kubernetes, containers, databases and queues, plus Prometheus scraping through receivers. Sentry does not cover this area.
Complete application metrics: counters, histograms and gauges with Prometheus-style aggregation. In Sentry, metrics are limited and their status changed several times.
Generic logs from any source (file, syslog, journald), correlated with the trace.
Semantic conventions standardised across languages and vendors.
No vendor lock-in and no licence cost, but you operate the backend yourself.
What Sentry does and OpenTelemetry does not¶
Error grouping into issues by fingerprint, with assignment, resolution, ignoring, regression detection and a count of affected users.
Source maps and debug symbols: rebuilds stack traces from minified JavaScript and from iOS and Android apps (ProGuard, dSYM).
Native crashes and ANR in mobile and desktop apps.
Session Replay of the frontend.
Releases: health per version, suspect commits and repository integration.
Breadcrumbs and local variables in the stack trace.
User Feedback, Cron Monitors and Uptime.
Ready-made alerts and user interface, with no stack to build.
Mature profiling. The OpenTelemetry profiling signal is still in development.
Where the two overlap¶
Distributed traces and performance: both do it.
The Sentry SDKs (JavaScript from v8, Python) already use OpenTelemetry internally, and Sentry accepts OTLP ingestion. That is why
tool_otelcan export traces to Sentry.
Sentry accepts OTLP: does it replace OpenTelemetry?¶
No. As a ready-made product for errors and APM, Sentry is much more complete. As observability coverage, it is not, and accepting OTLP does not make Sentry contain OpenTelemetry.
Sentry is one possible destination: it receives the traces (and logs) that OpenTelemetry produces, but it does not play the role of OpenTelemetry. There is no Collector, no infrastructure metrics and no sending to several backends, and the telemetry is locked into Sentry.
Data that arrives through OTLP gives less: it brings no breadcrumbs, local variables, source maps or the rich issue grouping. Those come from Sentry’s own SDKs.
The plugins complement each other:
tool_sentryhandles errors, with details that OpenTelemetry does not have;tool_otelhandles Moodle performance spans (requests, tasks, web services and database aggregates), whichtool_sentrydoes not create. Thetool_oteltraces can go to Sentry itself through OTLP.
In short: Sentry is more complete as a destination; OpenTelemetry is what produces and transports the telemetry. Neither replaces the other.
Recommended combination for Moodle¶
tool_oteland the OpenTelemetry Collector send traces, metrics and logs to the Grafana stack (or another OTLP backend).tool_sentryhandles errors, exceptions, releases and, on the frontend, replay.The
trace_idlinks the two tools: from an error in Sentry, find the complete trace in the tracing backend.
Note
Sentry’s OTLP support and the status of its metrics change often. Check the Sentry documentation before you decide on the architecture.