diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c4d7b3906..6bf70a0f0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index e1bfbbaf2..2cb5d7340 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/internal/test/e2e/nethttp_custom/main.go b/internal/test/e2e/nethttp_custom/main.go index 2102aacff..7b87e03f6 100644 --- a/internal/test/e2e/nethttp_custom/main.go +++ b/internal/test/e2e/nethttp_custom/main.go @@ -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) })