Distributed Tracing

In node.js

Distributed Systems Visibility

What is going on?

Which Services/Dbs are involved?

Where exactly did it happen?

How much time each step took?

The Power of Distributed Tracing

DEMO

Tracing Requests

  • In Jaeger UI

  • In Kibana (Logs and events)

Adding Your Own Spans

import { tracer } from '@sage/toolkit';

async function readBigFile() {
  const span = tracer.createSpan('Reading a big file');

  const file = await bigFileReader.read();

  span.log({
    filename: file.name,
    size: file.size
  });
  span.finish();
}

How Does it Work?

Continuation-Local Storage

Qs?

Distributed Tracing in Sage

By Tsachi Shushan

Distributed Tracing in Sage

  • 469