From cf4b57989d49a829984e1699b1ca2ede3bb07ab3 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 6 Dec 2023 11:20:31 -0800 Subject: [PATCH] Remove deprecated tracing function Signed-off-by: Derek McGowan --- tracing/tracing.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tracing/tracing.go b/tracing/tracing.go index 80d2b95c0..1d2738606 100644 --- a/tracing/tracing.go +++ b/tracing/tracing.go @@ -35,19 +35,6 @@ type StartConfig struct { type SpanOpt func(config *StartConfig) -// WithHTTPRequest marks span as a HTTP request operation from client to server. -// It'll append attributes from the HTTP request object and mark it with `SpanKindClient` type. -// -// Deprecated: use upstream functionality from otelhttp directly instead. This function is kept for API compatibility -// but no longer works as expected due to required functionality no longer exported in OpenTelemetry libraries. -func WithHTTPRequest(_ *http.Request) SpanOpt { - return func(config *StartConfig) { - config.spanOpts = append(config.spanOpts, - trace.WithSpanKind(trace.SpanKindClient), // A client making a request to a server - ) - } -} - // UpdateHTTPClient updates the http client with the necessary otel transport func UpdateHTTPClient(client *http.Client, name string) { client.Transport = otelhttp.NewTransport(