Skip to content

Commit cf4b579

Browse files
committed
Remove deprecated tracing function
Signed-off-by: Derek McGowan <[email protected]>
1 parent 8203bb9 commit cf4b579

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tracing/tracing.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ type StartConfig struct {
3535

3636
type SpanOpt func(config *StartConfig)
3737

38-
// WithHTTPRequest marks span as a HTTP request operation from client to server.
39-
// It'll append attributes from the HTTP request object and mark it with `SpanKindClient` type.
40-
//
41-
// Deprecated: use upstream functionality from otelhttp directly instead. This function is kept for API compatibility
42-
// but no longer works as expected due to required functionality no longer exported in OpenTelemetry libraries.
43-
func WithHTTPRequest(_ *http.Request) SpanOpt {
44-
return func(config *StartConfig) {
45-
config.spanOpts = append(config.spanOpts,
46-
trace.WithSpanKind(trace.SpanKindClient), // A client making a request to a server
47-
)
48-
}
49-
}
50-
5138
// UpdateHTTPClient updates the http client with the necessary otel transport
5239
func UpdateHTTPClient(client *http.Client, name string) {
5340
client.Transport = otelhttp.NewTransport(

0 commit comments

Comments
 (0)