dappnetbby / dappnet

A bulletproof platform for decentralized frontends
https://liamzebedee.gitbook.io/dappnet/
MIT License
76 stars 4 forks source link

Add basic analytics and instrumentation for debugging #25

Open liamzebedee opened 1 year ago

liamzebedee commented 1 year ago

Work items

How can you improve when you don't measure? What do we want to improve?

liamzebedee commented 1 year ago
liamzebedee commented 1 year ago

Options:

Decision based on - ease of making graphs, measurement, adding new columns, etc.

Options:

Amplitude looks specifically tailored towards product + pricing is good.

telemetry is the word here

liamzebedee commented 1 year ago

Work items

How can you improve when you don't measure? What do we want to improve?

Notes

It appears Gitbook only supports GA universal analytics (UA) projects. These are going to be deprecated in July 2023. Using it for now.

liamzebedee commented 1 year ago

Okay GA4 is an absolutely inordinate pain in the ass.

liamzebedee commented 1 year ago

And Prometheus requires a pull-based approach, which would involve figuring out their stupid protocol (since I can't use the Synthetix docker container). All I need to do is just get some data ugh. Going to just write a stupid MongoDB thing and do it this way. It shouldn't cost $15/mo just to get some graphs and a script to store data lmao.

shunkakinoki commented 1 year ago

Hello there https://github.com/twitter/the-algorithm/issues/1391

Analytics in web3 is a pain - you shouldn't be really using web2 services as it removes the whole anonymity side of things but there aren't that many good alternatives that scales

I used https://plausible.io/ for web analytics but had to pay $49/month

liamzebedee commented 1 year ago

Hahahahah wtf hello @shunkakinoki

shunkakinoki commented 1 year ago

Hello love how you document your entire brain process even in a github ISSUE lmfao

liamzebedee commented 1 year ago

Hello love how you document your entire brain process even in a github ISSUE lmfao

it's just so much easier to work & communicate openly if you can figure out how to do so :P

liamzebedee commented 1 year ago

5362e4ecbb51babe33ee353ded7f881cbb085373 implements telemetry for most of the above. tomorrow's work will be finishing off the gateway with tracking things

liamzebedee commented 1 year ago

Ran into challenges measuring the ENS/IPFS resolution times accurately, due to the node.js event loop and how it works. So for now, just logging the ENS names to get a good idea of important dapps and will measure them adhoc. https://twitter.com/liamzebedee/status/1644399226162663424