Skip to content

Commit

Permalink
Update Telemetry matcher in Readme (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Daniel <[email protected]>
  • Loading branch information
octosteve and zachdaniel authored Sep 29, 2020
1 parent 6902075 commit 6fb338f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6fb338f

Please sign in to comment.