opentelemetry-erlang-contrib/instrumentation/opentelemetry_tesla/test
Guilherme de Maio 901b571b07
[opentelemetry_tesla] Conditionally override propagator (#176)
* Optionally disable trace propagation for Tesla

While we always want spans being produced, trace progation is not
desirable in all cases - namely, when calling external parties, as that
may leak sensitive information, like one present on Baggage.

This patch introduces a new option `:propagate`, that defaults to
`true`.

Some tweaks are made to existing propagation test, fixing how options
are used. The approach here is closer to what we see in some middleware
tests of Tesla itself.

* change to propagator override

* change propagator to it uses global default

* mix format

* improve docs

---------

Co-authored-by: Andrew Rosa <dev@andrewhr.io>
2023-05-29 04:53:21 -06:00
..
middleware [opentelemetry_tesla] Conditionally override propagator (#176) 2023-05-29 04:53:21 -06:00
test_helper.exs [opentelemetry-tesla] add custom span name override as middleware opt (#105) 2022-10-04 16:32:36 -06:00