1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00

update client and server example comments (#170)

This commit is contained in:
Alyson van Hardenberg 2019-10-04 12:05:24 -07:00 committed by rghetia
parent b5c984b839
commit bf2e5e9f09
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ func initTracer() {
log.Fatal(err)
}
// Wrap Jaeger exporter with SimpleSpanProcessor and register the processor.
// Wrap stdout exporter with SimpleSpanProcessor and register the processor.
ssp := sdktrace.NewSimpleSpanProcessor(exporter)
sdktrace.RegisterSpanProcessor(ssp)

View File

@ -29,14 +29,14 @@ import (
func initTracer() {
sdktrace.Register()
// Create Jaeger exporter to be able to retrieve
// Create stdout exporter to be able to retrieve
// the collected spans.
exporter, err := stdout.NewExporter(stdout.Options{PrettyPrint: true})
if err != nil {
log.Fatal(err)
}
// Wrap Jaeger exporter with SimpleSpanProcessor and register the processor.
// Wrap stdout exporter with SimpleSpanProcessor and register the processor.
ssp := sdktrace.NewSimpleSpanProcessor(exporter)
sdktrace.RegisterSpanProcessor(ssp)