Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some basic observability to the app #9

Open
phrawzty opened this issue Jan 23, 2022 · 2 comments
Open

add some basic observability to the app #9

phrawzty opened this issue Jan 23, 2022 · 2 comments

Comments

@phrawzty
Copy link
Contributor

Why not add some basic observability and global stats to the app? Could be fun to have a dashboard that graphs aggregate things like games played, average number of guesses, whatever (nothing uniquely identifiable, ofc). It's not required functionality but it could be a good learning opportunity for adding o11y to a web app written in elm. Of course I would suggest Datadog for the destination. :)

@phrawzty
Copy link
Contributor Author

To be clear I mean, for me, this could be a good learning opportunity haha. I don't do frontend, I've never touched elm, and I also have never tried to make a webapp talk to Datadog. What could possibly go wrong? ;)

@n1k0
Copy link
Owner

n1k0 commented Jan 23, 2022

Haha I was avoiding setting up a server at all costs, though I agree this would be sweet to have. Now I don't know datadog at all, but if an API is available I don't see any roadblock tbh… Sending HTTP requests using Elm is not super hard but handling responses (error case, decoding JSON, etc) might be a little tricky. But if we're talking "fire & forget" strategy to collect event data, that might actually be super simple because then we don't care about the response result. Trickiest part would be authentication and token storage, especially as we're open source and we don't want other people to send crap using our token.

I don't know if Datadog allows public dashboards, but if not, setting up a simple page in Elm to render a few metrics from a Datadog API call should be rather straightforward.

Do you have a pointer to what you had in mind as a datadog API to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants