opentelemetry-js/examples/collector-exporter-node
Gerhard Stöbich a2304c9a82
chore: remove tracer apis not part of spec (#1764)
Co-authored-by: Mayur Kale <mayurkale@google.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-12-21 17:12:42 -05:00
..
docker Use new gRPC default port (#1725) 2020-12-21 14:38:12 -05:00
images chore: adding example for collector-exporter for node with opent… (#958) 2020-04-13 18:03:50 -07:00
README.md feat: Collector Metric Exporter for the Web (#1308) 2020-08-05 12:49:58 -04:00
metrics.js Update to Proto v0.5.0 (#1588) 2020-10-19 13:36:54 +02:00
package.json chore: version 0.14.0 proposal (#1763) 2020-12-17 15:44:39 -05:00
tracing.js chore: remove tracer apis not part of spec (#1764) 2020-12-21 17:12:42 -05:00

README.md

Overview

This example shows how to use @opentelemetry/exporter-collector to instrument a simple Node.js application.

This example will export spans data simultaneously using Exporter Collector and grpc. It will use proto format.

Installation

# from this directory
npm install

Run the Application

  1. Run docker

    # from this directory
    npm run docker:start
    
  2. Run tracing app

    # from this directory
    npm start:tracing
    
  3. Run metrics app

    # from this directory
    npm start:metrics
    
  4. Open page at http://localhost:9411/zipkin/ - you should be able to see the spans in zipkin Screenshot of the running example

Prometheus UI

The prometheus client will be available at http://localhost:9090.

Note: It may take some time for the application metrics to appear on the Prometheus dashboard.

LICENSE

Apache License 2.0