README.md in opencensus-0.2.2 vs README.md in opencensus-0.3.0
- old
+ new
@@ -75,13 +75,14 @@
tracking the latency of that request, and propagates distributed trace headers
into the request so you can potentially connect your request trace with that of
the remote service. Here is an example:
```ruby
+require "opencensus/trace/integrations/rack_middleware"
conn = Faraday.new(url: "http://www.example.com") do |c|
c.use OpenCensus::Trace::Integrations::FaradayMiddleware
c.adapter Faraday.default_adapter
- end
+end
conn.get "/"
```
See the documentation for the
[FaradayMiddleware](http://www.rubydoc.info/gems/opencensus/OpenCensus/Trace/Integrations/FaradayMiddleware)