Stuff your events!
Ignore everything you’ve ever been told about measurements and metadata being separate.
You get the best benefit out of a system like Honeycomb by shoving all the measurements and all the metadata into the same event. Seriously, the following is too few for an image conversion event, despite being an awful pain to scroll past on a phone:
The first three are the least you can possibly send. What happened, when, and how long did it take?
The next four are necessary to stitch traces together from spans (trace for “event”) handled by multiple endpoints and service:
After that, we get into metadata and measurements present in most of our events:
- the software release that handled the event
- the software’s language and runtime
- the process or container running the software
- the particular line of code in the software
Finally, we get to the meat: a couple dozen attributes specific to this event, including:
- how long it took to check the cache
- the count and size of what came out of the cache
- how long it took to fetch the data
- how how much we got back
- the size of the data we converted
- how long that took
- the count and size of the results
- how long it took to save it to the cache
… and we’re probably still under-doing it, but we have to ship sometime, right?
Honeycomb copes happily with dozens to hundreds of columns. If you know it or can measure it, seriously, stuff it in, especially anything that’ll help you correlate events to:
- the user that caused the event
- the organisation to which that user belongs
- the infrastructure through which the event passed