Tesla.Middleware.OpenTelemetry (opentelemetry_tesla v2.2.0)

Creates OpenTelemetry spans and injects tracing headers into HTTP requests

When used with Tesla.Middleware.PathParams, the span name will be created based on the provided path. Without it, the span name follow OpenTelemetry standards and use just the method name, if not being overriden by opts.

NOTE: This middleware needs to come before Tesla.Middleware.PathParams



  • :span_name - override span name. Can be a String for a static span name, or a function that takes the Tesla.Env and returns a String

Link to this section Summary

Link to this section Functions

Link to this function

call(env, next, opts)

Callback implementation for Tesla.Middleware.call/3.