Module: Google::Cloud
- Defined in:
- lib/google-cloud-trace.rb,
lib/google/cloud/trace.rb,
lib/google/cloud/trace/span.rb,
lib/google/cloud/trace/rails.rb,
lib/google/cloud/trace/utils.rb,
lib/google/cloud/trace/project.rb,
lib/google/cloud/trace/service.rb,
lib/google/cloud/trace/version.rb,
lib/google/cloud/trace/label_key.rb,
lib/google/cloud/trace/span_kind.rb,
lib/google/cloud/trace/middleware.rb,
lib/google/cloud/trace/result_set.rb,
lib/google/cloud/trace/credentials.rb,
lib/google/cloud/trace/time_sampler.rb,
lib/google/cloud/trace/trace_record.rb,
lib/google/cloud/trace/notifications.rb,
lib/google/cloud/trace/v1/trace_service_client.rb
Defined Under Namespace
Modules: Trace
Class Method Summary collapse
-
.trace(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Trace::Project
Creates a new object for connecting to the Stackdriver Trace service.
Instance Method Summary collapse
-
#trace(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Trace::Project
Creates a new object for connecting to the Stackdriver Trace service.
Class Method Details
.trace(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Trace::Project
Creates a new object for connecting to the Stackdriver Trace service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
89 90 91 92 93 94 95 |
# File 'lib/google-cloud-trace.rb', line 89 def self.trace project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/trace" Google::Cloud::Trace.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#trace(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Trace::Project
Creates a new object for connecting to the Stackdriver Trace service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
53 54 55 56 57 |
# File 'lib/google-cloud-trace.rb', line 53 def trace scope: nil, timeout: nil, client_config: nil Google::Cloud.trace @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |