Stackdriver
The stackdriver gem instruments a Ruby web application for Stackdriverdiagnostics. When loaded, it integrates with Rails, Sinatra, or other Rack-basedweb frameworks to collect application diagnostic and monitoring information foryour application.
Specifically, this gem is a convenience package that loads the following gems:
- [google-cloud-debugger](https://googleapis.dev/ruby/google-cloud-debugger/latest
- [google-cloud-error_reporting](https://googleapis.dev/ruby/google-cloud-error_reporting/latest
- [google-cloud-logging](https://googleapis.dev/ruby/google-cloud-logging/latest
- [google-cloud-trace](https://googleapis.dev/ruby/google-cloud-trace/latest
On top of that, stackdriver gem automatically activates the followinginstrumentation features:
- [google-cloud-debugger instrumentation](https://googleapis.dev/ruby/google-cloud-debugger/latest/file.INSTRUMENTATION.html
- [google-cloud-error_reporting strumentation](https://googleapis.dev/ruby/google-cloud-error_reporting/latest/file.INSTRUMENTATION.html
- [google-cloud-logging instrumentation](https://googleapis.dev/ruby/google-cloud-logging/latest/file.INSTRUMENTATION.html
- [google-cloud-trace instrumentation](https://googleapis.dev/ruby/google-cloud-trace/latest/file.INSTRUMENTATION.html
Usage
Instead of requiring multiple Stackdriver client library gems and explicitlyload each built-in Railtie classes, now users can achieve all these throughrequiring this singlestackdriver umbrella gem.
require"stackdriver"
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.