Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 703eed0

Browse files
bripkenskjin
authored andcommitted
refactor: Make examples executable (#90)
Right now, the examples cannot be executed without manually linking NPM modules to the correct locations, i.e. the `node_modules/` dir in project root. This makes it really hard to just try out an example as a user or as a developer working on opencensus-node. This PR moves the example to a *private* module under `packages/`. This means that lerna will automatically initialise the necessary symlinks for developers working on this project. Users on the other hand, could just run `npm install` and manually execute the examples.
1 parent a6f44e0 commit 703eed0

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "@opencensus/example-automatic-tracing",
3+
"description": "These example show hot to trace a simple HTTP server and export the trace state.",
4+
"version": "0.0.0",
5+
"private": true,
6+
"main": "zipkin.js",
7+
"dependencies": {
8+
"@opencensus/exporter-instana": "^0.0.3",
9+
"@opencensus/exporter-stackdriver": "^0.0.3",
10+
"@opencensus/exporter-zipkin": "^0.0.3",
11+
"@opencensus/nodejs": "^0.0.3"
12+
}
13+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)