forked from googleapis/google-cloud-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackdriver.rb
More file actions
61 lines (55 loc) · 2.53 KB
/
Copy pathstackdriver.rb
File metadata and controls
61 lines (55 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
gem "google-cloud-error_reporting"
gem "google-cloud-logging"
gem "google-cloud-trace"
require "google/cloud/logging"
require "google/cloud/trace"
require "google/cloud/error_reporting"
if defined? ::Rails::Railtie
require "google/cloud/error_reporting/rails"
require "google/cloud/logging/rails"
require "google/cloud/trace/rails"
end
# Backward compatibility with legacy stackdriver gem
require "legacy_stackdriver"
##
# # Stackdriver
#
# The stackdriver gem instruments a Ruby web application for Stackdriver
# diagnostics. When loaded, it integrates with Rails, Sinatra, or other
# Rack-based web frameworks to collect application diagnostic and monitoring
# information for your application.
#
# Specifically, this gem is a convenience package that loads the following gems:
# - [google-cloud-logging](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging)
# - [google-cloud-error_reporting](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-error_reporting)
# - [google-cloud-trace](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-trace)
#
# On top of that, stackdriver gem automatically activates the following
# instrumentation features:
# - [google-cloud-logging instrumentation](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/stackdriver/guides/logging_instrumentation)
# - [google-cloud-error_reporting instrumentation](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/stackdriver/guides/error_reporting_instrumentation)
# - [google-cloud-trace instrumentation](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/stackdriver/guides/trace_instrumentation)
#
#
# ## Usage
#
# Instead of requiring multiple Stackdriver client library gems and explicitly
# load each built-in Railtie classes, now users can achieve all these through
# requiring this single **stackdriver** umbrella gem.
# @example
# require "stackdriver"
module Stackdriver
end