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

Commit

Permalink
refactor: Make examples executable (#90)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bripkens authored and kjin committed Aug 7, 2018
1 parent a6f44e0 commit 703eed0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/opencensus-example-automatic-tracing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@opencensus/example-automatic-tracing",
"description": "These example show hot to trace a simple HTTP server and export the trace state.",
"version": "0.0.0",
"private": true,
"main": "zipkin.js",
"dependencies": {
"@opencensus/exporter-instana": "^0.0.3",
"@opencensus/exporter-stackdriver": "^0.0.3",
"@opencensus/exporter-zipkin": "^0.0.3",
"@opencensus/nodejs": "^0.0.3"
}
}

0 comments on commit 703eed0

Please sign in to comment.