From 6fb338fc6bc43d8d691df80281dca4aad72b27df Mon Sep 17 00:00:00 2001 From: Steven Nunez Date: Tue, 29 Sep 2020 11:09:58 -0400 Subject: [PATCH] Update Telemetry matcher in Readme (#25) Co-authored-by: Zach Daniel --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 297e088..12a5aa5 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,9 @@ config :my_app, MyApp.Repo, ```elixir # in application.ex -:ok = :telemetry.attach("spandex-query-tracer-repo_name", [:my_app, :repo_name, :query], &SpandexEcto.TelemetryAdapter.handle_event/4, nil) +# If your repo is called `MyApp.Repo`, use `[:my_app, :repo, :query]` +# If your repo is called `Foo.Bar.Baz`, use `[:foo, :bar, :baz, :query]` +:ok = :telemetry.attach("spandex-query-tracer-repo_name", [:my_app, :repo, :query], &SpandexEcto.TelemetryAdapter.handle_event/4, nil) ``` > NOTE: **If you are upgrading from Ecto 2**, make sure to **remove** the `loggers`