Currently, queries run by dataloader happen under the hood without the ability to pass additional options to them.
It should be possible to do this
- when calling the Dx API
Dx.Defd.load!(..., telemetry_options: [...])
- globally and dynamically
config :dx telemetry_options: &MyApp.Dx.Config.telemetry_options/1
defmodule MyApp.Dx.Config do
def telemetry_options(atom) do
[
logger_metadata: Logger.metadata()
]
end
end