Considerations for adding tracing

Tracing is an immensely powerful tool that also comes with a cost. Every trace is (although small) some overhead to process and manage. You may be excited to add tracing to every method in your application, or to build it into a library that attaches tracing and span creation to every method call. This can be done, and you will quickly find your infrastructure overwhelmed with trace information.

Tracing is also a tool that has the most benefit when tied directly to the responsibility of running the code. Be very aware that as you add tracing, you are also adding a lot of ancillary processing needed to capture, store, and query the data created by the traces. 

A good way to handle the balancing act of the ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.