, 5 tweets, 2 min read Read on Twitter
Free o11y tip of the day:

If you use nginx or similar at your edge, wrap all calls out to other services and dbs with a function that logs duration to a header. Then you can swiftly identify *any* source of latency or errors using only nginx/access.log. honeycomb.io/blog/tell-me-m…
You emit all the header variables containing service hop times in your log, which serves as a shockingly effective poor man's distributed tracing/service map.

You'll want to feed it into a tool that lets you slice&dice; you can set this up on @honeycombio free tier in <15 min.
The hardest part of distributed systems is usually not debugging the code; it's finding where in your system the code you need to debug is.

How many hours have you wasted trying to find where the errors are coming from, or debugging the wrong service?
At Parse, we used the nginx trick with FB scuba ; it dropped our time-to-find-what-to-debug from hours to seconds, reliably.

(At honeycomb, of course, we don't have this problem 😉)
It's actually better than tracing, in some ways. It finds problems like "service y is 25% slower across the board", or "service u is slower but only for requests that issue db read queries to one specific replica in shard z (or writes to all shards with primary in region x)"
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Charity Majors
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!