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
# from this directory
npm install
-
Run docker container with collector
# from this directory $ npm run docker:start
-
Run the server
# from this directory $ npm run server
-
Run the client
# from this directory npm run client
Go to Zipkin with your browser http://localhost:9411/
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on OpenTelemetry for Node.js, visit: https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node
Apache License 2.0