class Google::Cloud::Trace::Credentials

# Credentials

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

@example

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"