Sha256: 8c18c7e6a828d68fee22eba26e144788159e1de7335e363371f615ac22227c9a

Contents?: true

Size: 900 Bytes

Versions: 11

Compression:

Stored size: 900 Bytes

Contents

# Zipkin

Zipkin is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in microservice architectures [Zipkin Distributed Tracing](https://zipkin.io/).

Add the zipkin interceptor to your basic set of LHC interceptors.

```ruby
  LHC.config.interceptors = [LHC::Zipkin]
```

The following configuration needs to happen in the application that wants to run this interceptor:

1. Add `gem 'zipkin-tracer'` to your Gemfile.
2. Add the necessary Rack middleware and configuration

```ruby
config.middleware.use ZipkinTracer::RackHandler, {
  service_name: 'service-name', # name your service will be known as in zipkin
  service_port: 80, # the port information that is sent along the trace
  json_api_host: 'http://zipkin-collector', # the zipkin endpoint
  sample_rate: 1 # sample rate, where 1 = 100% of all requests, and 0.1 is 10% of all requests
}
```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lhc-9.4.0 docs/interceptors/zipkin.md
lhc-9.3.1 docs/interceptors/zipkin.md
lhc-9.3.0 docs/interceptors/zipkin.md
lhc-9.2.0 docs/interceptors/zipkin.md
lhc-9.1.2 docs/interceptors/zipkin.md
lhc-9.1.2.pre docs/interceptors/zipkin.md
lhc-9.1.1 docs/interceptors/zipkin.md
lhc-8.1.1 docs/interceptors/zipkin.md
lhc-9.1.0 docs/interceptors/zipkin.md
lhc-9.0.0 docs/interceptors/zipkin.md
lhc-8.1.0 docs/interceptors/zipkin.md