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.
More information at <https://cloud.google.com/docs/authentication/getting-started>
85
+
This options uses a default exporter to console.
53
86
54
-
3. Open the `server.js` file in the EasyNotes application and insert this code on top:
55
-
```javascript
56
-
var traceMng =require("opencensus-nodejs")
57
-
.addStackdriver("your-project-id")
58
-
.start();
87
+
To test de api you can use the commands:
88
+
```bash
89
+
#To insert a note:
90
+
curl -X POST http://localhost:3000/notes --data '{"title": "Note 1", "content": "this is the note content"}' -H "Content-Type: application/json"
91
+
92
+
#To get notes:
93
+
curl http://localhost:3000/notes
59
94
```
60
95
61
-
## Instrument using Zipkin
96
+
## Exporting to Zipkins
62
97
63
98
1. Download Zipkin choosing one 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:
64
99
```bash
@@ -73,7 +108,26 @@ var tracing = require("opencensus-nodejs")
73
108
.start()
74
109
```
75
110
76
-
## Instrumenting with multiple Exporters
111
+
112
+
## Exporting to Stackdriver
113
+
114
+
1. Make sure you enabled Stackdriver Tracing on Google Cloud Platform. More info at <https://cloud.google.com/trace/docs/quickstart>
115
+
116
+
2. Enable Application Default Credentials for authentication with:
0 commit comments