Skip to content

Files

Overview

OpenTelemetry Connect Instrumentation allows the user to automatically collect trace data and export them to the backend of choice (Collector Exporter), to give observability to distributed systems.

This is a simple example that demonstrates tracing calls made to Connect API. The example shows key aspects of tracing such as

  • Root Span (on Client)
  • Child Span (on Client)
  • Span Events
  • Span Attributes

Installation

# from this directory
npm install

Run the Application

Collector - docker container

  • Run docker container with collector

    # from this directory
    $ npm run docker:start

Server

  • Run the server

    # from this directory
    $ npm run server
  • Run the client

    # from this directory
    npm run client

Zipkin UI

Go to Zipkin with your browser http://localhost:9411/

Zipkin UI with trace

Useful links

LICENSE

Apache License 2.0