opentelemetry-erlang-contrib icon indicating copy to clipboard operation
opentelemetry-erlang-contrib copied to clipboard

Tesla: Include span attributes on error

Open jeffutter opened this issue 1 year ago • 1 comments

The call to Tesla.run could possibly return {:error, _} in certain cases (ex. timeout). Since attributes were set in a step after this, they were skipped in these scenarios.

This sets the attributes before the call to Tesla.run and then again after to cover the scenario that a middleware modified the attributes and they have been updated on the Env.

jeffutter avatar Jan 24 '24 04:01 jeffutter

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: jeffutter / name: Jeffery Utter (1b48e188203a194efd3d6a0d54d8c677d475b21a)