# OpenTelemetryTesla

[![Build Status](](

Tesla middleware that creates OpenTelemetry spans from Tesla HTTP client events.

## Installation

If [available in Hex](, the package can be installed
by adding `opentelemetry_tesla` to your list of dependencies in `mix.exs`:

def deps do
    {:opentelemetry_tesla, "~> 0.1.0-rc.1"}

## Setup
Add `Tesla.Middleware.OpentelemetryTeslaMiddleware` to the list of your Tesla middlewares.

After this, spans will start to be created whenever a request is completed or if it eventually fails with some error.