projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update functions in object fetcher for tesla and set up a proper mock for tests
[akkoma]
/
lib
/
pleroma
/
repo.ex
diff --git
a/lib/pleroma/repo.ex
b/lib/pleroma/repo.ex
index 4af1bde566b4df98e299e87fbfb61a4b8613a426..aa5d427ae28401cccabfb82ab5734ff86d39aa71 100644
(file)
--- a/
lib/pleroma/repo.ex
+++ b/
lib/pleroma/repo.ex
@@
-8,6
+8,10
@@
defmodule Pleroma.Repo do
adapter: Ecto.Adapters.Postgres,
migration_timestamps: [type: :naive_datetime_usec]
adapter: Ecto.Adapters.Postgres,
migration_timestamps: [type: :naive_datetime_usec]
+ defmodule Instrumenter do
+ use Prometheus.EctoInstrumenter
+ end
+
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.