revampix / homemade_rum

Real User Monitoring aka. Homemade RUM
4 stars 2 forks source link

Beacon data saving and establishing proper way to develop Homemade RUM application #1

Closed ceckoslab closed 6 years ago

ceckoslab commented 6 years ago

Currently in folder "proof of concpet/push" we have PHP code that is a proof of concept. This code needs to be changed and ported PHP framework that makes sense. Even if framework is not used probably we will need some DB wrapper in order to avoid writing raw SQL queries and avoid SQL injection.

For now we may cover 2 points:

What is needed for local setup:

This is basic diagram how beacon saving and sending process works:

beacon save
ceckoslab commented 6 years ago

I also added test file which idea is to shorten the development cycle when beacon part is being developed.

This is the file that simulates posting data: https://github.com/revampix/homemade_rum/blob/master/proof%20of%20concpet/test/test-push.php

I also had to add a cookie with name GUID but I also had some issues with this cookie when I was saving it in DB. Seems that the cookie value contains " surrounding the actual value and if the quotes are not there then insert query doesn't work. I guess that best is if we trim the " from cookie value and make the insert work correctly.

ceckoslab commented 6 years ago

Thanks @spectatora :) I am closing this issue. I tested and it works well :)