expose the connection tracing ID on the stream context (#4414)

This is especially interesting for HTTP servers: They can now learn
which connection a request was received on.
This commit is contained in:
Marten Seemann
2024-04-07 02:41:25 +12:00
committed by GitHub
parent 183d42a729
commit e310b80cf3
8 changed files with 26 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package quic
import (
"context"
"errors"
"io"
"os"
@@ -41,7 +42,7 @@ var _ = Describe("Stream", func() {
BeforeEach(func() {
mockSender = NewMockStreamSender(mockCtrl)
mockFC = mocks.NewMockStreamFlowController(mockCtrl)
str = newStream(streamID, mockSender, mockFC)
str = newStream(context.Background(), streamID, mockSender, mockFC)
timeout := scaleDuration(250 * time.Millisecond)
strWithTimeout = struct {