1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/instrumentation/othttp
Andy Schweig 5438916f62
Expose optional ResponseWriter interfaces. (#979)
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.
2020-07-30 10:30:47 -07:00
..
filters Rename plugin directory to instrumentation (#779) 2020-05-30 14:53:32 -07:00
common.go Add default metrics to othttp instrumentation Fixes #542 (#861) 2020-06-26 12:19:57 -07:00
config_test.go Rename plugin directory to instrumentation (#779) 2020-05-30 14:53:32 -07:00
config.go Add default metrics to othttp instrumentation Fixes #542 (#861) 2020-06-26 12:19:57 -07:00
doc.go Rename plugin directory to instrumentation (#779) 2020-05-30 14:53:32 -07:00
handler_example_test.go Make the stdout exporter a package (#963) 2020-07-24 20:44:51 -07:00
handler_test.go Expose optional ResponseWriter interfaces. (#979) 2020-07-30 10:30:47 -07:00
handler.go Expose optional ResponseWriter interfaces. (#979) 2020-07-30 10:30:47 -07:00
transport_example_test.go Decouple API from SDK (#977) 2020-07-28 10:47:08 -07:00
transport_test.go Rename plugin directory to instrumentation (#779) 2020-05-30 14:53:32 -07:00
transport.go Rename plugin directory to instrumentation (#779) 2020-05-30 14:53:32 -07:00
wrap.go Avoid setting span status to Unknown when no HTTP status is provided; stdlib assumes it to be 200 OK (#908) 2020-07-07 09:00:21 -07:00