Sha256: 5022a43fa6f29aac220456b89b66f1af4e5b49503e24124dbd0b159e1b9d90fc
Contents?: true
Size: 1.55 KB
Versions: 5
Compression:
Stored size: 1.55 KB
Contents
# Minato::Trace Add support to [Google Cloud Trace](https://cloud.google.com/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](#configuring-distributed-trace) ## Integration with Google Cloud Logging For integration with [Google Cloud Logging](https://cloud.google.com/logging?hl=en) you have to install [minato-logger-rails](https://gitlab.com/ferreri/minato/minato-logger-rails) v0.1.13+. ## Installation Add this line to your application's Gemfile: ```ruby gem "minato-trace" ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ 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 ```ruby {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](CHANGELOG.md). ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
5 entries across 5 versions & 2 rubygems