opentelemetry-erlang-contrib/instrumentation/opentelemetry_ecto/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 Migrate otel ecto (#16) 2021-10-08 15:38:18 -06:00
opentelemetry_ecto_test.exs Remove exporter race-condition on tests (#44) 2022-03-24 11:48:59 -06:00
test_helper.exs Otel 1.0.0-rc.3 support (#27) 2021-10-13 21:11:26 -06:00