Skip to content

Commit

Permalink
Add context import to examples that use "context" (open-telemetry#5105)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
2 people authored and michael2893 committed Sep 8, 2024
1 parent 4685784 commit 66a17a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/en/docs/languages/go/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Here's how you can create an exporter with default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
"go.opentelemetry.io/otel/sdk/trace"
)
Expand All @@ -104,6 +106,8 @@ Here's how you can create an exporter with default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
"go.opentelemetry.io/otel/sdk/trace"
)
Expand Down Expand Up @@ -138,6 +142,8 @@ Here's how you can create an exporter with default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
"go.opentelemetry.io/otel/sdk/metric"
)
Expand All @@ -156,6 +162,8 @@ Here's how you can create an exporter with default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
"go.opentelemetry.io/otel/sdk/metric"
)
Expand All @@ -178,6 +186,8 @@ default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/prometheus"
"go.opentelemetry.io/otel/sdk/metric"
)
Expand All @@ -202,6 +212,8 @@ Here's how you can create an exporter with default configuration:

```go
import (
"context"

"go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp"
"go.opentelemetry.io/otel/sdk/log"
)
Expand Down

0 comments on commit 66a17a5

Please sign in to comment.