ayo, (edited )
@ayo@ayco.io avatar

setting up some perf monitoring & error tracking for the personal-site umbrella of projects 😄

ayo,
@ayo@ayco.io avatar

#TIL using https://sentry.io for error & performance monitoring turned out easy... set it up for the parent app and it will already monitor all sub-routes, which means my flask blueprints (/threads, /ori) will already be monitored

👉 commit: https://git.sr.ht/~ayoayco/ayco.io-flask/commit/d0752c8ec7bd64fc1aacd4690d11b4aa79d2f8a8

ayo, (edited )
@ayo@ayco.io avatar

great, now I will see runtimes of all my server-side functions :) these are from my /threads page: https://ayco.io/threads

ayo,
@ayo@ayco.io avatar

sentry.io has "AI Suggested Solution" turned on by default so go into "Settings -> Organization -> General Settings" to find it if you care about that

ayo,
@ayo@ayco.io avatar

also, Business Plan Trial is turned on automatically for 14 days. I guess I will see if some stuff will stop working then, but so far looks like the personal/hobby/free tier is enough

ayo,
@ayo@ayco.io avatar

really happy about this, I feel like I care more about these stats than analytics... will explore more!

ayo,
@ayo@ayco.io avatar

interesting traces... friendica is requesting a /status.php on my site ... probably a federation thing

ayo, (edited )
@ayo@ayco.io avatar

this one I wouldn't have found out without this current sentry.io setup: I wasn't properly redirecting ayco.io/.well-known/webfinger requests!

They should go to social.ayco.io instead of ayo.ayco.io -- I was wondering why there's so many 404s

Yay bug caught and now fixed :) Try it: https://ayco.io/.well-known/webfinger?resource=acct%3Aayo%40ayco.io

ayo,
@ayo@ayco.io avatar

Wonder if this was affecting my federation. 👀

ayo, (edited )
@ayo@ayco.io avatar

Addressed the longest running function fetch_statuses on https://ayco.io/threads by parallelizing.

1.9 seconds down to 94 milliseconds

Before & After:

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • megavids
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • Leos
  • cisconetworking
  • provamag3
  • JUstTest
  • lostlight
  • All magazines