Skip to content

Commit

Permalink
Lint and changelog fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grcevski committed Dec 2, 2023
1 parent 63db4d2 commit 718555e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ updates:
schedule:
interval: weekly
day: sunday
- package-ecosystem: docker
directory: /internal/test/e2e/nethttp_custom
labels:
- dependencies
- docker
- Skip Changelog
schedule:
interval: weekly
day: sunday
- package-ecosystem: gomod
directory: /
labels:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
### Added

- Add `WithResourceAttributes` `InstrumentationOption` to configure `Instrumentation` to add additional resource attributes. ([#522](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/522))
- Add HTTP client instrumentation for `Transport.RoundTrip`. ([#529](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/529))

### Changed

Expand Down
6 changes: 5 additions & 1 deletion internal/test/e2e/nethttp_custom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func logStatus(next http.Handler) http.Handler {
next.ServeHTTP(rec, r)

rec.rw.WriteHeader(rec.status)
rec.rw.Write(rec.data)
_, err := rec.rw.Write(rec.data)
if err != nil {
log.Printf("write failed %s\n", err.Error())
return
}

log.Printf("response status: %d\n", rec.status)
})
Expand Down

0 comments on commit 718555e

Please sign in to comment.