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

Fix superfluous writing header after flush in otelhttp #6074

Merged

Conversation

amanakin
Copy link
Contributor

@amanakin amanakin commented Sep 4, 2024

Closes #6073

@amanakin amanakin requested a review from a team September 4, 2024 16:32
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.7%. Comparing base (673a225) to head (f479d5a).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #6074   +/-   ##
=====================================
  Coverage   65.7%   65.7%           
=====================================
  Files        203     203           
  Lines      13034   13037    +3     
=====================================
+ Hits        8565    8568    +3     
  Misses      4206    4206           
  Partials     263     263           
Files with missing lines Coverage Δ
...p/otelhttp/internal/request/resp_writer_wrapper.go 100.0% <100.0%> (ø)

@dmathieu dmathieu merged commit 4f6b6c3 into open-telemetry:main Sep 5, 2024
24 checks passed
@XSAM XSAM added this to the v1.30.0 milestone Sep 9, 2024
XSAM added a commit that referenced this pull request Sep 11, 2024
### Added

- Add `NewProducer` to
`go.opentelemetry.io/contrib/instrumentation/runtime`, which allows
collecting the `go.schedule.duration` histogram metric from the Go
runtime. (#5991)
- Add gRPC protocol support for OTLP log exporter in
`go.opentelemetry.io/contrib/exporters/autoexport`. (#6083)

### Removed

- Drop support for [Go 1.21]. (#6046, #6047)

### Fixed

- Superfluous call to `WriteHeader` when flushing after setting a status
code in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`.
(#6074)
- Superfluous call to `WriteHeader` when writing the response body after
setting a status code in
`go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`. (#6055)

[Go 1.21]: https://go.dev/doc/go1.21

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants