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:
parent
b5c984b839
commit
bf2e5e9f09
@ -44,7 +44,7 @@ func initTracer() {
|
|||||||
log.Fatal(err)
|
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)
|
ssp := sdktrace.NewSimpleSpanProcessor(exporter)
|
||||||
sdktrace.RegisterSpanProcessor(ssp)
|
sdktrace.RegisterSpanProcessor(ssp)
|
||||||
|
|
||||||
|
@ -29,14 +29,14 @@ import (
|
|||||||
func initTracer() {
|
func initTracer() {
|
||||||
sdktrace.Register()
|
sdktrace.Register()
|
||||||
|
|
||||||
// Create Jaeger exporter to be able to retrieve
|
// Create stdout exporter to be able to retrieve
|
||||||
// the collected spans.
|
// the collected spans.
|
||||||
exporter, err := stdout.NewExporter(stdout.Options{PrettyPrint: true})
|
exporter, err := stdout.NewExporter(stdout.Options{PrettyPrint: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
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)
|
ssp := sdktrace.NewSimpleSpanProcessor(exporter)
|
||||||
sdktrace.RegisterSpanProcessor(ssp)
|
sdktrace.RegisterSpanProcessor(ssp)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user