You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
To use Stackdriver as your exporter, make sure you have enabled [Stackdriver Tracing](https://cloud.google.com/trace/docs/quickstart) on Google Cloud Platform. Enable your [Application Default Credentials](https://cloud.google.com/docs/authentication/getting-started) for authentication with:
Finally, on top of your application, add the following lines of code:
71
-
```javascript
72
-
var tracing =require('@opencensus/opencensus-nodejs');
73
-
var stackdriver =require('@opencensus/opencensus-exporter-stackdriver');
74
-
75
-
// Add your project id to the Stackdriver options
76
-
var options =newstackdriver.StackdriverOptions('your-project-id');
77
-
var exporter =newstackdriver.Stackdriver(options);
78
-
79
-
tracing.registerExporter(exporter).start();
80
-
```
81
-
82
-
### Using Zipkin Exporter
83
-
84
-
To use Zipkin as your exporter, first, download from any of the three available options on [Quickstart](https://zipkin.io/pages/quickstart.html): through Docker, on Java or manually compiling the source code. Tests were executed running Zipkin with Java, through the following commands on terminal:
0 commit comments