dwyl / dwyl/imgup

Feat: Logging + Metrics

Open
#89 0 comments 0 reactions 0 assignees View on GitHub
chore elixir enhancement T2h tech-debt technical
Dominant language
Elixir
Stars
108
Forks
20
Avg merge
21h 46m
Merged PRs (30d)
4

Description

# This is "on hold" ... pending https://github.com/dwyl/logs/issues/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... :shipit:
But it's not great for a "production" app where we want to track metrics. 📈
We need to "[productionize](https://en.wiktionary.org/wiki/productionize)"! 🚀

# Todo

+ [ ] **Define** the **`DB` schema** for storing _anon_ logging data.
We can borrow (or draw inspiration) from: [`dwyl/auth/lib/auth/log.ex`](https://github.com/dwyl/auth/blob/83c286a24d47bd087ba41925a740d4030cf95e19/lib/auth/log.ex#L11-L21)
+ [ ] `user_agent` table should mimmic the one in `auth`: [`lib/auth/user_agent.ex`](https://github.com/dwyl/auth/blob/83c286a24d47bd087ba41925a740d4030cf95e19/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 ...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.