mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-09 13:37:12 +02:00
Replace spaces to tabs in Go code snippets (#1854)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
parent
cb0972504e
commit
d4c8ffadad
@ -10,7 +10,7 @@ In a perfect world, one would simply migrate their entire go application --inclu
|
||||
|
||||
However, if you create the following spans in a go application:
|
||||
|
||||
```golang
|
||||
```go
|
||||
ctx, ocSpan := opencensus.StartSpan(context.Background(), "OuterSpan")
|
||||
defer ocSpan.End()
|
||||
ctx, otSpan := opentelemetryTracer.Start(ctx, "MiddleSpan")
|
||||
@ -54,7 +54,7 @@ Starting from an application using entirely OpenCensus APIs:
|
||||
4. Remove OpenCensus exporters and configuration
|
||||
|
||||
To override OpenCensus' DefaultTracer with the bridge:
|
||||
```golang
|
||||
```go
|
||||
import (
|
||||
octrace "go.opencensus.io/trace"
|
||||
"go.opentelemetry.io/otel/bridge/opencensus"
|
||||
@ -102,7 +102,7 @@ Starting from an application using entirely OpenCensus APIs:
|
||||
4. Remove OpenCensus Exporters and configuration.
|
||||
|
||||
For example, to swap out the OpenCensus logging exporter for the OpenTelemetry stdout exporter:
|
||||
```golang
|
||||
```go
|
||||
import (
|
||||
"go.opencensus.io/metric/metricexport"
|
||||
"go.opentelemetry.io/otel/bridge/opencensus"
|
||||
|
Loading…
x
Reference in New Issue
Block a user