Skip to content

Add telemetry_options passed to dataloader and ecto #14

Description

@arnodirlam

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

  1. when calling the Dx API
    Dx.Defd.load!(..., telemetry_options: [...])
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions