Maarten van Vliet 1de26cce1a
Add Dataloader instrumentation library (#137)
* Add Dataloader instrumentation library

* Move call to set context to @run_start event

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-04-05 10:34:49 -06:00

15 lines
389 B
Elixir

import Config
config :opentelemetry_dataloader,
ecto_repos: [OpentelemetryDataloader.TestRepo]
config :opentelemetry_dataloader, OpentelemetryDataloader.TestRepo,
hostname: "localhost",
username: "postgres",
password: "postgres",
database: "opentelemetry_dataloader_test",
pool: Ecto.Adapters.SQL.Sandbox
config :opentelemetry,
processors: [{:otel_simple_processor, %{}}]