@@ -30,7 +30,8 @@ Currently, OpenCensus supports:
30
30
31
31
* [ Prometheus] [ exporter-prom ] for stats
32
32
* [ OpenZipkin] [ exporter-zipkin ] for traces
33
- * Stackdriver [ Monitoring] [ exporter-sdstats ] and [ Trace] [ exporter-sdtrace ]
33
+ * Stackdriver [ Monitoring] [ exporter-stackdriver ] and [ Trace] [ exporter-stackdriver ]
34
+ * [ Jaeger] [ exporter-jaeger ] for traces
34
35
35
36
## Tags
36
37
@@ -255,7 +256,7 @@ An example logger exporter is below:
255
256
256
257
type exporter struct {}
257
258
258
- func (e *exporter ) Export (vd *stats .ViewData ) {
259
+ func (e *exporter ) ExportView (vd *stats .ViewData ) {
259
260
log.Println (vd)
260
261
}
261
262
@@ -267,8 +268,8 @@ func (e *exporter) Export(vd *stats.ViewData) {
267
268
268
269
[ embedmd ] :# ( trace.go startend )
269
270
``` go
270
- ctx = trace.StartSpan (ctx, " your choice of name" )
271
- defer trace. EndSpan (ctx )
271
+ ctx , span : = trace.StartSpan (ctx, " your choice of name" )
272
+ defer span. End ( )
272
273
```
273
274
274
275
More tracing examples are coming soon...
@@ -314,6 +315,6 @@ A screenshot of the CPU profile from the program above:
314
315
[ newtags-replace-ex ] : https://godoc.org/go.opencensus.io/tag#example-NewMap--Replace
315
316
316
317
[ exporter-prom ] : https://godoc.org/go.opencensus.io/exporter/prometheus
317
- [ exporter-sdstats ] : https://godoc.org/go.opencensus.io/exporter/stackdriver
318
+ [ exporter-stackdriver ] : https://godoc.org/go.opencensus.io/exporter/stackdriver
318
319
[ exporter-zipkin ] : https://godoc.org/go.opencensus.io/exporter/zipkin
319
- [ exporter-sdtrace ] : https://godoc.org/go.opencensus.io/exporter/trace/stackdriver
320
+ [ exporter-jaeger ] : https://godoc.org/go.opencensus.io/exporter/jaeger
0 commit comments