blackode
Custom Metrics in Phoenix App using Telemetry
Hi, Wish You All Happy New Year 2020 won = 2021
I wish to use :telemetry in one of my projects. I’m novice in this topic.
After reading docs and some articles, it’s tempting to use it.
The using of this lib giving me the feeling of a pro coder.
Requirement
I need to measure the profile_visits I have an endpoint something like GET /profiles/profile_id When ever the people visits that particular route I have to track down the count of that particular route visits.
Schema
table -> profile_visits
columns -> id, profile_id, count
My Current Solution
I simply updating the count value by calling Repo.update and increasing the count value by +1 where profile_id == <<profile_id>>
Now, I’m trying to move to telemetry.
To achieve I need to write a lot of lines includes custom_event custom_listener comparing to above solution which I felt simple.
Eventually, The logic of insertion metric and exraction of metric is same.
After this I have couple of questions that is keeps me away from using telemetry in the project.
Is telemetry not for such simple measurements?
Is this recommended approach to use telemetry for this kinda requirements?
Do we have any advantages to use telemetry over my approach current solution?
Glad if some experts helps us so we can grab the more developers to use telemetry
First Post!
blackode
Any suggestions please?








