1de26cce1a
* Add Dataloader instrumentation library * Move call to set context to @run_start event --------- Co-authored-by: Tristan Sloughter <t@crashfast.com> |
||
---|---|---|
.. | ||
config | ||
lib | ||
priv/test_repo/migrations | ||
test | ||
.formatter.exs | ||
.gitignore | ||
README.md | ||
docker-compose.yml | ||
mix.exs | ||
mix.lock |
README.md
OpentelemetryDataloader
Telemetry handler that creates Opentelemetry spans from Dataloader events.
After installing, setup the handler in your application behaviour before your top-level supervisor starts.
OpentelemetryDataloader.setup()
Installation
If available in Hex, the package can be installed
by adding opentelemetry_dataloader
to your list of dependencies in mix.exs
:
def deps do
[
{:opentelemetry_dataloader, "~> 1.0.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/opentelemetry_dataloader.