Skip to content

Commit fa36e9c

Browse files
committed
chore: add script and update readme
1 parent f48de81 commit fa36e9c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

examples/basic-tracer-node/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ Click on the trace to view its details.
5757

5858
<p align="center"><img src="./images/jaeger-ui-detail.png?raw=true"/></p>
5959

60+
### Export to multiple exporters
61+
62+
- Run the sample
63+
64+
```sh
65+
$ # from this directory
66+
$ npm run multi_exporter
67+
```
68+
69+
This will export the spans data simultaneously on `Zipkin` and `Jaeger` backend. This is handy if transitioning from one vendor/OSS project to another for the tracing backend. You might want to export to both during the transitional phase.
70+
6071
## Useful links
6172
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
6273
- For more information on tracing, visit: <https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-tracing>

examples/basic-tracer-node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "index.js",
77
"scripts": {
88
"zipkin:basic": "cross-env EXPORTER=zipkin node ./index.js",
9-
"jaeger:basic": "cross-env EXPORTER=jaeger node ./index.js"
9+
"jaeger:basic": "cross-env EXPORTER=jaeger node ./index.js",
10+
"multi_exporter": "node ./multi_exporter.js"
1011
},
1112
"repository": {
1213
"type": "git",

0 commit comments

Comments
 (0)