1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-03 00:27:03 +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:
Robert Pająk
2021-04-28 17:19:15 +02:00
committed by GitHub
parent cb0972504e
commit d4c8ffadad
4 changed files with 48 additions and 48 deletions

View File

@ -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: However, if you create the following spans in a go application:
```golang ```go
ctx, ocSpan := opencensus.StartSpan(context.Background(), "OuterSpan") ctx, ocSpan := opencensus.StartSpan(context.Background(), "OuterSpan")
defer ocSpan.End() defer ocSpan.End()
ctx, otSpan := opentelemetryTracer.Start(ctx, "MiddleSpan") ctx, otSpan := opentelemetryTracer.Start(ctx, "MiddleSpan")
@ -54,7 +54,7 @@ Starting from an application using entirely OpenCensus APIs:
4. Remove OpenCensus exporters and configuration 4. Remove OpenCensus exporters and configuration
To override OpenCensus' DefaultTracer with the bridge: To override OpenCensus' DefaultTracer with the bridge:
```golang ```go
import ( import (
octrace "go.opencensus.io/trace" octrace "go.opencensus.io/trace"
"go.opentelemetry.io/otel/bridge/opencensus" "go.opentelemetry.io/otel/bridge/opencensus"
@ -102,7 +102,7 @@ Starting from an application using entirely OpenCensus APIs:
4. Remove OpenCensus Exporters and configuration. 4. Remove OpenCensus Exporters and configuration.
For example, to swap out the OpenCensus logging exporter for the OpenTelemetry stdout exporter: For example, to swap out the OpenCensus logging exporter for the OpenTelemetry stdout exporter:
```golang ```go
import ( import (
"go.opencensus.io/metric/metricexport" "go.opencensus.io/metric/metricexport"
"go.opentelemetry.io/otel/bridge/opencensus" "go.opentelemetry.io/otel/bridge/opencensus"