Sha256: 72ca83dd90e3e5a3b90e6032533508e263761ec70fb221b88035d7e2ea7f9339

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 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
```

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

2 entries across 2 versions & 1 rubygems

Version Path
minato-trace-0.1.6.pre.2 README.md
minato-trace-0.1.6.pre.1 README.md