Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Introduction:

This document describes how to trace/map the request across multiple sub-systems involved in process of serving/showing the details.

...

Here we use the headers map as the carrier. The Tracer object knows which headers it needs to read in order to reconstruct the tracer state and any Baggage.

Pros:

  1. Can able to find the time taken on each sub-modules easily based on SpanId

  2. Time spent of each sub-system will be available directly in the event itself

  3. In sub-systems, we can add multiple spans

Cons:

  1. More efforts required compared to Solution1.

  2. Multiple telemetry events will be logged for the same workflow(like impression & trace)

...

Integrate with external distributed tracing tools like Zipkin, Jaeger etc..

JAEGER:

Architecture diagram:

...

Pros:

  1. The simple configuration code changes will handle the request traceability.

  2. Jaegar UI can be used to visualize the trace events.

Cons:

  1. Workflows can’t be traceable. Each API will be considered as one trace.

  2. Connecting multiple applications/servers to the single jaeger instance to trace the workflow of the API has to explore.

Reference links:

...

Jaeger Client node: https://github.com/jaegertracing/jaeger-client-node

...

Integration with spring application: Video- https://www.youtube.com/watch?v=hpnLUFRY4_Y

...

Trace ability of request across subsystems

...