View Source cowboy_otel_middleware (cowboy_otel v0.2.0)

A cowboy middleware that attach the cowboy_otel_h span ctx to itself (the request process).

Summary

Functions

Attach span ctx to request process. Also rename span and set http.route attribute if we have bindings.

Functions

-spec execute(Req, Env) -> {ok, Req, Env} when Req :: cowboy_req:req(), Env :: cowboy_middleware:env().
Attach span ctx to request process. Also rename span and set http.route attribute if we have bindings.