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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 26 additions and 11 deletions

View file

@ -35,7 +35,7 @@ var _ = Describe("Send Stream", func() {
BeforeEach(func() {
mockSender = NewMockStreamSender(mockCtrl)
mockFC = mocks.NewMockStreamFlowController(mockCtrl)
str = newSendStream(streamID, mockSender, mockFC)
str = newSendStream(context.Background(), streamID, mockSender, mockFC)
timeout := scaleDuration(250 * time.Millisecond)
strWithTimeout = gbytes.TimeoutWriter(str, timeout)