Sha256: f5a011e8e1e6624d861e40c45499941d7d9455a70457556d8f5a527a71923113

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 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.12+.

## 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. If you want to disable trace, set an environment variable `MINATO_TRACE_DISABLE=true` in your app.

## 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

4 entries across 4 versions & 1 rubygems

Version Path
minato-trace-0.1.6.pre.6 README.md
minato-trace-0.1.6.pre.5 README.md
minato-trace-0.1.6.pre.4 README.md
minato-trace-0.1.6.pre.3 README.md