opentelemetry-erlang-contrib/instrumentation/opentelemetry_phoenix/test
Andrew Rosa 3faa246d02
Remove exporter race-condition on tests (#44)
Default exporter immediately attempts on start connect to
`:otel-collector` default port. As we don't have any collector running
on our test environment, this results in a few warnings. That's not an
issue in itself, as code immediately switches to another export, but
creates a lot of noise.

This patch moves the exporter setup to `config/test.exs`, essentially
removing the need to restart opentelemetry applicationn for each test
case. The only work setup blocks do is update the exporter's target pid.

The processor was changed to simple mode, available now, which also remove
another vector of (unlikely but theoretically possible) race-conditions.
2022-03-24 11:48:59 -06:00
..
support Update otel-phoenix deps (#9) 2021-09-19 17:51:51 -06:00
opentelemetry_phoenix_test.exs Remove exporter race-condition on tests (#44) 2022-03-24 11:48:59 -06:00
test_helper.exs Update otel-phoenix deps (#9) 2021-09-19 17:51:51 -06:00