X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Frepo.ex;h=aa5d427ae28401cccabfb82ab5734ff86d39aa71;hb=d70af32127bda1431bacad58e7c6516a2e652fcd;hp=4af1bde566b4df98e299e87fbfb61a4b8613a426;hpb=1c3d3d0c2b6ebb4948df0b4ec085bcc4a564a126;p=akkoma diff --git a/lib/pleroma/repo.ex b/lib/pleroma/repo.ex index 4af1bde56..aa5d427ae 100644 --- 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] + defmodule Instrumenter do + use Prometheus.EctoInstrumenter + end + @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable.