# Overview OpenTelemetry HTTPS Instrumentation allows the user to automatically collect trace data and export them to the backend of choice. This example exports directly to Zipkin. This is a simple example that demonstrates tracing HTTPS request from client to server. The example shows key aspects of tracing such as - Root Span (on Client) - Child Span (on Client) - Child Span from a Remote Parent (on Server) - SpanContext Propagation (from Client to Server) - Span Events - Span Attributes ## Installation ```sh git clone https://github.com/open-telemetry/opentelemetry-js.git cd examples/https npm install ``` Setup [Zipkin Tracing](https://zipkin.io/pages/quickstart.html), for example: ```sh docker run -d -p 9411:9411 openzipkin/zipkin ``` ## Run the Application Run the server: ```sh npm run server ``` Run the client ```sh npm run client ``` ## Zipkin UI - `npm run server` should output the trace ID in the terminal (e.g `traceId: 4815c3d576d930189725f1f1d1bdfcc6`). - Go to Zipkin at . - Enter the trace ID in the "Search by trace ID" form (top right).

Zipkin UI showing a trace

## Useful links - For more information on OpenTelemetry, visit: - For more information on OpenTelemetry for Node.js, visit: ## LICENSE Apache License 2.0