From c55efe96c278cf084ed05e95d1a0606185445305 Mon Sep 17 00:00:00 2001 From: Jason Parraga Date: Thu, 13 Jun 2024 21:35:55 -0700 Subject: [PATCH] lint fixes Signed-off-by: Jason Parraga --- flytestdlib/otelutils/config.go | 2 +- flytestdlib/otelutils/factory.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flytestdlib/otelutils/config.go b/flytestdlib/otelutils/config.go index 16583d38d32..b7f147c1f52 100644 --- a/flytestdlib/otelutils/config.go +++ b/flytestdlib/otelutils/config.go @@ -18,7 +18,7 @@ const ( FileExporter ExporterType = "file" JaegerExporter ExporterType = "jaeger" OtlpGrpcExporter ExporterType = "otlpGrpc" - OtlpHttpExporter ExporterType = "otlpHttp" + OtlpHTTPExporter ExporterType = "otlpHttp" ) var ( diff --git a/flytestdlib/otelutils/factory.go b/flytestdlib/otelutils/factory.go index e600cfeed16..f27b54b6794 100644 --- a/flytestdlib/otelutils/factory.go +++ b/flytestdlib/otelutils/factory.go @@ -3,18 +3,18 @@ package otelutils import ( "context" "fmt" - "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" - "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp" - "go.opentelemetry.io/otel/trace/noop" "os" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/exporters/jaeger" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp" "go.opentelemetry.io/otel/exporters/stdout/stdouttrace" "go.opentelemetry.io/otel/sdk/resource" "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.21.0" rawtrace "go.opentelemetry.io/otel/trace" + "go.opentelemetry.io/otel/trace/noop" "github.com/flyteorg/flyte/flytestdlib/contextutils" "github.com/flyteorg/flyte/flytestdlib/version" @@ -80,7 +80,7 @@ func RegisterTracerProvider(ctx context.Context, serviceName string, config *Con return err } opts = append(opts, trace.WithBatcher(exporter)) - case OtlpHttpExporter: + case OtlpHTTPExporter: // Pull configuration from environment variables // https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ exporter, err := otlptracehttp.New(ctx)