|
| 1 | +# [START shared_configure] |
| 2 | +# Add this to config/environments/*.rb |
| 3 | +Rails.application.configure do |config| |
| 4 | + # Stackdriver Shared parameters |
| 5 | + config.google_cloud.project_id = "YOUR-PROJECT-ID" |
| 6 | + config.google_cloud.keyfile = "/path/to/service-account.json" |
| 7 | +end |
| 8 | +# [END shared_configure] |
| 9 | + |
| 10 | +# [START debugger_configure] |
| 11 | +# Add this to config/environments/*.rb |
| 12 | +Rails.application.configure do |config| |
| 13 | + # Stackdriver Debugger specific parameters |
| 14 | + config.google_cloud.debugger.project_id = "YOUR-PROJECT-ID" |
| 15 | + config.google_cloud.debugger.keyfile = "/path/to/service-account.json" |
| 16 | +end |
| 17 | +# [END debugger_configure] |
| 18 | + |
| 19 | +# [START trace_configure] |
| 20 | +# Add this to config/environments/*.rb |
| 21 | +Rails.application.configure do |config| |
| 22 | + # Stackdriver Trace specific parameters |
| 23 | + config.google_cloud.trace.project_id = "YOUR-PROJECT-ID" |
| 24 | + config.google_cloud.trace.keyfile = "/path/to/service-account.json" |
| 25 | +end |
| 26 | +# [END trace_configure] |
| 27 | + |
| 28 | +# [START error_reporting_configure] |
| 29 | +# Add this to config/environments/*.rb |
| 30 | +Rails.application.configure do |config| |
| 31 | + # Stackdriver Error Reporting specific parameters |
| 32 | + config.google_cloud.error_reporting.project_id = "YOUR-PROJECT-ID" |
| 33 | + config.google_cloud.error_reporting.keyfile = "/path/to/service-account.json" |
| 34 | +end |
| 35 | +# [END error_reporting_configure] |
| 36 | + |
| 37 | +# [START logging_configure] |
| 38 | +# Add this to config/environments/*.rb |
| 39 | +Rails.application.configure do |config| |
| 40 | + # Stackdriver Logging specific parameters |
| 41 | + config.google_cloud.logging.project_id = "YOUR-PROJECT-ID" |
| 42 | + config.google_cloud.logging.keyfile = "/path/to/service-account.json" |
| 43 | +end |
| 44 | +# [END logging_configure] |
0 commit comments