Skip to content

remove deprecated ConnectionTracingID and ConnectionTracingKey#5521

Merged
marten-seemann merged 1 commit intomasterfrom
remove-conn-tracing-id
Jan 3, 2026
Merged

remove deprecated ConnectionTracingID and ConnectionTracingKey#5521
marten-seemann merged 1 commit intomasterfrom
remove-conn-tracing-id

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

Now that we have a new API for WebTransport (#4405), we don't need the long deprecated ConnectionTracingID and the associated ConnectionTracingKey anymore.

@macroscopeapp
Copy link
Copy Markdown

macroscopeapp Bot commented Jan 3, 2026

Remove deprecated connection tracing from server and client contexts by deleting quic.ConnectionTracingID generation and quic.ConnectionTracingKey usage in server.go and transport.go

Delete deprecated tracing ID type, key, and generator, and strip tracing ID insertion from connection setup and dialing; update the HTTP integration test to no longer assert tracing IDs.

📍Where to Start

Start with baseServer.handleInitialImpl in server.go, then review Transport.doDial in transport.go.


Macroscope summarized 43905c6.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.06%. Comparing base (23b11e7) to head (43905c6).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5521      +/-   ##
==========================================
+ Coverage   84.02%   84.06%   +0.04%     
==========================================
  Files         159      159              
  Lines       16338    16334       -4     
==========================================
+ Hits        13728    13731       +3     
+ Misses       1976     1972       -4     
+ Partials      634      631       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the long-deprecated ConnectionTracingID and ConnectionTracingKey API, which are no longer needed after the introduction of a new WebTransport API (as described in issue #4405). Applications can now set their own tracing keys using Transport.ConnContext instead.

  • Removed the deprecated public API types and constants from interface.go
  • Removed all internal implementation and usage throughout the codebase
  • Updated integration tests to remove assertions on the deprecated API

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
interface.go Removed deprecated ConnectionTracingKey, ConnectionTracingID, and connTracingCtxKey type definitions
connection.go Removed connTracingID atomic variable and nextConnTracingID() helper function
transport.go Removed code that added ConnectionTracingKey to context in doDial()
server.go Removed code that added ConnectionTracingKey to context in handleInitialImpl()
integrationtests/self/http_test.go Removed test assertions that verified ConnectionTracingID values in connection contexts

The changes are clean and complete. All references to the deprecated API have been successfully removed from the codebase, and the remaining code functions correctly without it.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants