Stackdriver Trace API for Ruby

google-cloud-trace uses Google API extensions to provide an easy-to-use client library for the Stackdriver Trace API (v1) defined in the googleapis git repository

Getting started

google-cloud-trace will allow you to connect to the Stackdriver Trace API and access all its methods.

In order to achieve so you need to set up authentication as well as install the library locally.

Setup Authentication

To authenticate all your API calls, first install and setup the Google Cloud SDK. Once done, you can then run the following command in your terminal:

$ gcloud beta auth application-default login

or

$ gcloud auth login

Please see gcloud beta auth application-default login document for the difference between these commands.

Installation

Install this library using gem:

$ [sudo] gem install google-cloud-trace

At this point you are all set to continue.