~/talk

How to instrument your Rails app with OpenTelemetry

Talkat RailsConf 2025 · 2025-07-08..07-10· [observability, ruby-on-rails]
links:none on file
slides:none on file

Configures the OpenTelemetry SDK and OTLP exporter to send traces, metrics, and logs to New Relic from a minimal Rails 8 app (Ruby 3.4.2), installs instrumentation with open-telemetry-instrumentation-all gem, and demonstrates adding a custom span (activity.duration) and attributes via ActiveSupport Notifications so traces show where uninstrumented time lives. Adds metrics with the experimental metrics SDK: a counter for activity completions and an HTTP server request duration histogram (custom bucket view, 3s export interval). Enables logs via a Ruby Logger bridge so logs include trace_id/span_id correlation.

AI-written summary · about

  1. 0:00OpenTelemetry and Rails intro
  2. 1:06Observability and OpenTelemetry
  3. 10:58Core signals and data types
  4. 14:07Workshop environment setup
  5. 18:21SDK and exporters config
  6. 27:10Instrumenting a Rails app
  7. 37:31Custom spans and telemetry
  8. 41:07Viewing traces in backend
  9. 55:20Break and troubleshooting
  10. 58:11Introducing OpenTelemetry metrics
  11. 1:03:12Recording custom metrics
  12. 1:13:08Configuring and viewing logs
  13. 1:20:16Custom metrics instrumentation
  14. 1:31:10Workshop recap and future
  15. 1:36:31Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.