File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,6 @@ type StartConfig struct {
35
35
36
36
type SpanOpt func (config * StartConfig )
37
37
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
-
51
38
// UpdateHTTPClient updates the http client with the necessary otel transport
52
39
func UpdateHTTPClient (client * http.Client , name string ) {
53
40
client .Transport = otelhttp .NewTransport (
You can’t perform that action at this time.
0 commit comments