Skip to content

Commit 095e281

Browse files
authored
Update README.md
1 parent c106ff5 commit 095e281

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,13 @@ defmodule MyCoolApp.Application do
108108

109109
def start(_type, _args) do
110110
children = [
111-
MyAppWeb.Endpoint,
112-
# PromEx should be started after the Endpoint, to avoid unnecessary error messages
111+
# PromEx should be started before anything else as PromEx will caputre init events from
112+
# libraries like Ecto, Phoenix and Oban. If it is started after those other supervision trees
113+
# you will miss those events and metrics.
113114
MyCoolApp.PromEx,
114115

116+
MyCoolApp.Repo,
117+
MyCoolApp.Endpoint
115118
...
116119
]
117120

0 commit comments

Comments
 (0)