Faraday 2+ middleware to instrument spans for AWS X-Ray.
Add this line to your application's Gemfile:
gem 'faraday-aws-xray'And then execute:
bundle installOr install it yourself as:
gem install faraday-aws-xrayrequire 'faraday/aws/xray'Then wherever you configure your Faraday connection, add the middleware:
Faraday.new(...) do |conn|
conn.use Faraday::Aws::XRay::Middleware
endAfter checking out the repo, run bin/setup to install dependencies.
Then, run bin/test to run the tests.
To install this gem onto your local machine, run rake build.
To release a new version, make a commit with a message such as "Bumped to 0.0.2" and then run rake release.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.