Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design document for otelhttpconv package #6859

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add BytesWritten and Error
  • Loading branch information
dmathieu committed Mar 11, 2025
commit 2e58049e186cc5f9c8775609ea8ce8a6f7dfa20d
6 changes: 6 additions & 0 deletions instrumentation/net/http/otelhttpconv/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ type ResponseWrapper interface {

// BytesRead contains the amount of bytes read from the response's body
BytesRead() int64

// BytesWritten contains the amount of bytes written to the response's body
BytesWritten() int64

// Error contains the last error that occured while writing
Error() error
}
```

Expand Down