Google-cloud-ruby: Stackdriver is not working on my Rails project

Created on 20 Jun 2018  路  4Comments  路  Source: googleapis/google-cloud-ruby

I am running a Rails 4.2.6 project. I added the stackdriver gem to my Gemfile config:

gem "stackdriver", '0.15.0'

and also added
config.google_cloud.project_id = <myprojectid>
to the app config. Still, nothing seems to work. No logs go to loggin, no traces, no debug, no error reporting. I tried to run the app both on GCE and also on my local machine configuring the service account json file. Nothing works.

What I am doing wrong? How can I easily check if stackdriver is properly configured in my project?

clouddebugger clouderrorreporting cloudtrace logging question

Most helpful comment

Reopening. This does need to be investigated and cleaned up.

To start off, version 0.20.0 of the stackdriver gem drops debugger for now.

All 4 comments

I just noticed that some are actually working, but others not:

  • Tracing: it shows a bunch of lines with "empty" in the URI. Nothing useful
    screen shot 2018-06-22 at 1 57 22 pm

  • Debug: not working. Shows: The debugger could not find any applications to debug. Please follow these instructions to set up an agent for your application.
    screen shot 2018-06-22 at 1 57 37 pm

  • Profiling: does work for Ruby as long as I know :-(

  • Logs: are working, but they go under "GCE VM Instance" category logs. It took some time for me to find them

  • Error Reporting: Working fine.

Same for me with stackdriver 0.15.3 and google-cloud-debugger 0.33.0 in a rails application

Greetings, we're closing this due to inactivity. Please let us know if the issue needs to be reopened.

Reopening. This does need to be investigated and cleaned up.

To start off, version 0.20.0 of the stackdriver gem drops debugger for now.

Was this page helpful?
0 / 5 - 0 ratings