fix(otelhttp): make Body handling in Transport consistent with stdlib by ash2k · Pull Request #8618 · open-telemetry/opentelemetry-go-contrib (original) (raw)

@ash2k ash2k mentioned this pull request

Mar 3, 2026

pellared

@ash2k

First request uses Body, following requests use Body if it can be rewound, which is only possible for well-known types that stdlib knows about. Otherwise, GetBody is used, when available.

pellared

pellared

@pellared pellared changed the titlefix(otelhttp): make Body and GetBody() behavior consistent with stdlib fix(otelhttp): make Body handling in Transport consistent with stdlib

Mar 4, 2026

@ash2k @pellared

Co-authored-by: Robert Pająk pellared@hotmail.com

dmathieu

@pellared

@ash2k ash2k deleted the fix-body-wrapping branch

March 5, 2026 03:12

pellared added a commit that referenced this pull request

Mar 6, 2026

@pellared

#8649)

Added

Changed

Fixed

Removed

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})