def trace scope: nil, timeout: nil, client_config: nil
      Google::Cloud.trace @project, @keyfile, scope: scope,
                                              timeout: (timeout || @timeout),
                                              client_config: client_config
    end
def trace scope: nil, timeout: nil, client_config: nil
      Google::Cloud.trace @project, @keyfile, scope: scope,
                                              timeout: (timeout || @timeout),
                                              client_config: client_config
    end
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
 {file:AUTHENTICATION.md Authentication Guide}.

 @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
   set of resources and operations that the connection can access. See
   [Using OAuth 2.0 to Access Google
   APIs](https://developers.google.com/identity/protocols/OAuth2).

   The default scope is:

   * `https://www.googleapis.com/auth/cloud-platform`

 @param [Integer] timeout Default timeout to use in requests. Optional.

 @return [Google::Cloud::Trace::Project]

 @example
   require "google/cloud"

   gcloud = Google::Cloud.new
   trace_client = gcloud.trace

   traces = trace_client.list_traces Time.now - 3600, Time.now
   traces.each do |trace|
     puts "Retrieved trace ID: #{trace.trace_id}"
   end