Skip to content

Commit

Permalink
Add context import to examples that use "context" (#5105)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
MrAlias and cartermp authored Aug 26, 2024
1 parent 43844c7 commit 93e799d
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 93e799d

Please sign in to comment.