https://github.com/opencensus-beam/opencensus_tesla
Tesla middleware for OpenCensus
https://github.com/opencensus-beam/opencensus_tesla
Last synced: about 1 year ago
JSON representation
Tesla middleware for OpenCensus
- Host: GitHub
- URL: https://github.com/opencensus-beam/opencensus_tesla
- Owner: opencensus-beam
- Created: 2019-02-20T17:21:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T12:05:08.000Z (over 5 years ago)
- Last Synced: 2025-03-23T20:43:47.754Z (about 1 year ago)
- Language: Elixir
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenCensus Tesla Middleware
[](https://circleci.com/gh/opencensus-beam/opencensus_tesla)
[](https://codecov.io/gh/opencensus-beam/opencensus_tesla)
[](http://inch-ci.org/github/opencensus-beam/opencensus_tesla)
OpencensusTesla is a Tesla middleware for generating spans for outgoing requests. This middleware will create a new child span from the current context and include this context in W3C TraceContext headers with the request.
## Installation
The package can be installed by adding `opencensus_tesla` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:opencensus_tesla, "~> 0.2.0"}
]
end
```
### Example usage
```
defmodule MyClient do
use Tesla
plug OpencensusTesla.Middleware
end
```