DEV Community

Sandor Dargo
Sandor Dargo

Posted on

4 2

DevAnalytics at DOHackathon: final steps

This is my last post about DevAnalytics before the submission.

Since the last time, I did what I promised and some more.

What I promised

  • On the backend side I removed logging of the incoming HTTP requests, as they include the DEV API Key that is supposed to be secret. Now even me I don't have access to them, not to mention the unlikely(?) case that my account gets compromised.

This was quite easy to do. I'm using flask on BE side and I just had to add these two lines:

log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
Enter fullscreen mode Exit fullscreen mode
  • I added some error handling on the Frontend side. In case, you enter a wrong API key, or there is some other problem, you get a nice error message:

Error message

Additionally, once you ask for the stats the screen is cleared first.

The extra

I added some more statistics about average numbers.

Averages

What is next?

The submission. I have some more ideas, but I think I'll only implement them after the hackathon.

Thanks for following through and feel free to try DevAnalytics and leave a comment.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (1)

Collapse
 
casiimir profile image
casiimir β€’

Woah, cool! Nice done Sandor, I really appreciate it. I tested it with my key and, really impressive, a complete post tracker appear on my window.
πŸ‘πŸ‘

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay