Class: Google::Cloud::Trace::Credentials

Inherits:
V1::Credentials
  • Object
show all
Defined in:
lib/google/cloud/trace/credentials.rb

Overview

Credentials

Represents the authentication and authorization used to connect to the Stackdriver Trace API.

Examples:

require "google/cloud/trace"

keyfile = "/path/to/keyfile.json"
creds = Google::Cloud::Trace::Credentials.new keyfile

trace = Google::Cloud::Trace.new(
  project_id: "my-project",
  credentials: creds
)

trace.project_id #=> "my-project"

Constant Summary

Constants inherited from V1::Credentials

V1::Credentials::DEFAULT_PATHS, V1::Credentials::JSON_ENV_VARS, V1::Credentials::PATH_ENV_VARS, V1::Credentials::SCOPE