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

Inherits:
V1::TraceService::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"