Skip to content

Transport error: define Request.GetBody to avoid this error #3062

@lukasmalkmus

Description

@lukasmalkmus

Description

We are seeing the following error from clients that send traces to our custom collector implementation:

Post https://[...]/v1/traces: http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error

Environment

  • OS: Linux/macOS
  • Architecture: x86
  • Go Version: 1.18
  • opentelemetry-go version: v1.6.3

Steps To Reproduce

Wasn't able to reproduce it with a local example that is not using our custom collector.

Expected behavior

I never expected to see this error. Should probably implement Request.GetBody to avoid this as suggested by the error message?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions