mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-03-03 14:52:56 +02:00
http.ResponseWriters may implement additional interfaces (http.CloseNotifier, http.Flusher, http.Hijacker, http.Pusher, io.ReaderFrom) that get lost when the ResponseWriter is wrapped in another object. This change uses the httpsnoop package to wrap the ResponseWriter so that the resulting object implements any of the optional interfaces that the original ResponseWriter implements as well as using the replacement ResponseWriter methods that gather information for tracing.
19 lines
632 B
Modula-2
19 lines
632 B
Modula-2
module go.opentelemetry.io/otel
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/felixge/httpsnoop v1.0.1
|
|
github.com/golang/protobuf v1.4.2
|
|
github.com/google/go-cmp v0.5.1
|
|
github.com/kr/pretty v0.1.0 // indirect
|
|
github.com/opentracing/opentracing-go v1.2.0
|
|
github.com/stretchr/testify v1.6.1
|
|
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980 // indirect
|
|
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
|
|
google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03 // indirect
|
|
google.golang.org/grpc v1.30.0
|
|
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
|
|
)
|