Feat: Logging + Metrics
nelsonic opened this issue Β· comments
Nelson commented
This is "on hold" ... pending dwyl/logs#1
At present the imgup
app has no DB
π
So we have zero insight into what images are being uploaded. π π€·ββοΈ
This is "OK" for a basic demo...
But it's not great for a "production" app where we want to track metrics. π
We need to "productionize"! π
Todo
- Define the
DB
schema for storing anon logging data.
We can borrow (or draw inspiration) from:dwyl/auth/lib/auth/log.ex
-
user_agent
table should mimmic the one inauth
:lib/auth/user_agent.ex
so that we store the relevant detail. The other field we could add is
-
- Create the necessary
migrations
for the schema we define. - Create a simple interface that logs required events ...