Minato::Trace
Add support to Google Cloud Trace to your Minato Rails Application.
Usage
Install this gem and your application will be abble to send trace information to Google Cloud Trace for any request. To configure distributed trace with other microservices see Configuring distributed trace
Integration with Google Cloud Logging
For integration with Google Cloud Logging you have to install minato-logger-rails v0.1.13+.
Installation
Add this line to your application's Gemfile:
gem "minato-trace"
And then execute:
$ bundle
Or install it yourself as:
$ gem install minato-trace
Configuring distributed trace
To configure distributed trace with others services, put this config into the service config file:
Add to service SDK initializer config file:
config/initializers/{service_name}.rb
{ServiceClass}.configure do |config|
config.use Minato::Trace::Middleware::DistributedTraceContext
end
Disable trace
Trace is enabled by default in remote environments. If you want to disable trace, set an environment variable MINATO_TRACE_DISABLE=true
in your app.
In local environment like angeplus-infra-local, the trace is disabled by default.
Changelog
Changelog information could be found here.
License
The gem is available as open source under the terms of the MIT License.