Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Velocity 2017 SJ: Application Tracing

Velocity 2017 SJ: Application Tracing

Workshops slides

Bryan Liles

June 21, 2017
Tweet

More Decks by Bryan Liles

Other Decks in Programming

Transcript

  1. Agenda • Workstation Setup • Goals • Tracing Introduction •

    Exercise 1 • Break • Exercise 2 • Exercise 3 • Beyond the basics • Discussion • Closing
  2. Shop Metrics For every resource, check utilization, saturation, and errors.

    • Average busy time • Amount of capacity available • Error count
  3. Shop Logging Capture events to help identify incidents and application

    specific data • Auth success/failure • Validation failures • So many more
  4. Shop Tracing Capture timing metrics from one or multiple resources

    participating in a transaction. • Find latency issues and errors across resources
  5. Span: A period of time A span contains the following:

    * Operation name * Start/Finish timestamps * Tags * Logs * References to other spans
  6. Trace: a directed acyclic graph (DAG) of spans Span A

    Span B Span C Span D Span E Span F Span G Span H
  7. Trace: a DAG of spans Time ➡ Span A Span

    B Span D Span C Span E Span F Span G Span H
  8. Google Dapper "We built dapper to provide Google’s developers with

    more information about the behavior of complex distributed systems"
  9. • Standardize span management • Standardize inter-process propagation • Standardize

    active span management • Standardize in-band context encoding • Standardize out-of-band trace data encoding
  10. Why Standardize? • Tracing should be easy and unobtrusive •

    Competing standards dilute progress • The ecosystem is complex and diverse. It’s easier to drive to a single standard rather than having multiple.