File tree 3 files changed +6
-6
lines changed
instrumentation/github.com/gorilla/mux/otelmux
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
15
15
### Fixed
16
16
17
17
- The ` "go.opentelemetry.io/contrib/detector/aws/ecs".Detector ` no longer errors if not running in ECS. (#1426 , #1428 )
18
+ - ` go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux `
19
+ does not require instrumented HTTP handlers to call ` Write ` nor
20
+ ` WriteHeader ` anymore. (#1443 )
18
21
19
22
## [ 1.2.0/0.27.0] - 2021-11-15
20
23
@@ -46,7 +49,7 @@ Update dependency on the `go.opentelemetry.io/otel` project to `v1.1.0`.
46
49
- Add instrumentation for the ` github.com/aws/aws-lambda-go ` package. (#983 )
47
50
- Add resource detector for AWS Lambda. (#983 )
48
51
- Add ` WithTracerProvider ` option for ` otelhttptrace.NewClientTrace ` . (#1128 )
49
- - Add optional AWS X-Ray configuration module for AWS Lambda Instrumentation (#984 )
52
+ - Add optional AWS X-Ray configuration module for AWS Lambda Instrumentation. (#984 )
50
53
51
54
### Fixed
52
55
Original file line number Diff line number Diff line change @@ -83,13 +83,12 @@ var rrwPool = &sync.Pool{
83
83
func getRRW (writer http.ResponseWriter ) * recordingResponseWriter {
84
84
rrw := rrwPool .Get ().(* recordingResponseWriter )
85
85
rrw .written = false
86
- rrw .status = 0
86
+ rrw .status = http . StatusOK
87
87
rrw .writer = httpsnoop .Wrap (writer , httpsnoop.Hooks {
88
88
Write : func (next httpsnoop.WriteFunc ) httpsnoop.WriteFunc {
89
89
return func (b []byte ) (int , error ) {
90
90
if ! rrw .written {
91
91
rrw .written = true
92
- rrw .status = http .StatusOK
93
92
}
94
93
return next (b )
95
94
}
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ import (
30
30
"go.opentelemetry.io/otel/trace"
31
31
)
32
32
33
- func ok (w http.ResponseWriter , _ * http.Request ) {
34
- w .WriteHeader (http .StatusOK )
35
- }
33
+ func ok (w http.ResponseWriter , _ * http.Request ) {}
36
34
37
35
func TestSDKIntegration (t * testing.T ) {
38
36
sr := tracetest .NewSpanRecorder ()
You can’t perform that action at this time.
0 commit comments