Skip to content

Instantly share code, notes, and snippets.

@tedsuo
Created November 11, 2020 23:08
Show Gist options
  • Select an option

  • Save tedsuo/60760dc4e614a56ec933f8336a09ce66 to your computer and use it in GitHub Desktop.

Select an option

Save tedsuo/60760dc4e614a56ec933f8336a09ce66 to your computer and use it in GitHub Desktop.
node_create_tracer.js
const opentelemetry = require('@opentelemetry/api');
const express = require('express');
// create a tracer and name it after your package
const tracer = opentelemetry.trace.getTracer('@otel-node-basics/server');
const app = express();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment