deprecate the ConnectionTracingKey (#4532)

Applications can set their own tracing key using Transport.ConnContext.
This commit is contained in:
Marten Seemann
2024-05-28 10:24:10 +08:00
committed by GitHub
parent 0d1e27d77c
commit 21b643eeea

View File

@@ -57,9 +57,11 @@ var Err0RTTRejected = errors.New("0-RTT rejected")
// ConnectionTracingKey can be used to associate a ConnectionTracer with a Connection.
// It is set on the Connection.Context() context,
// as well as on the context passed to logging.Tracer.NewConnectionTracer.
// Deprecated: Applications can set their own tracing key using Transport.ConnContext.
var ConnectionTracingKey = connTracingCtxKey{}
// ConnectionTracingID is the type of the context value saved under the ConnectionTracingKey.
// Deprecated: Applications can set their own tracing key using Transport.ConnContext.
type ConnectionTracingID uint64
type connTracingCtxKey struct{}