From 93e799da523b767c850e0df8169d606b1a032b08 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Mon, 26 Aug 2024 16:44:32 -0700 Subject: [PATCH] Add context import to examples that use "context" (#5105) Co-authored-by: Phillip Carter --- content/en/docs/languages/go/exporters.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/en/docs/languages/go/exporters.md b/content/en/docs/languages/go/exporters.md index 2dfeb0e60937..bb948c41b50f 100644 --- a/content/en/docs/languages/go/exporters.md +++ b/content/en/docs/languages/go/exporters.md @@ -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" ) @@ -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" ) @@ -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" ) @@ -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" ) @@ -178,6 +186,8 @@ default configuration: ```go import ( + "context" + "go.opentelemetry.io/otel/exporters/prometheus" "go.opentelemetry.io/otel/sdk/metric" ) @@ -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" )