func context.WithValue

25 uses

	context (current package)
		context.go#L727: func WithValue(parent Context, key, val any) Context {

	golang.org/x/net/http2
		server.go#L542: 	ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())
		server.go#L544: 		ctx = context.WithValue(ctx, http.ServerContextKey, hs)

	golang.org/x/net/trace
		trace.go#L137: 	return context.WithValue(ctx, contextKey, tr)

	google.golang.org/grpc
		rpc_util.go#L969: 	return context.WithValue(ctx, rpcInfoContextKey{}, &rpcInfo{
		server.go#L1888: 	return context.WithValue(ctx, streamKey{}, stream)
		server.go#L2038: 	return context.WithValue(ctx, serverKey{}, server)

	google.golang.org/grpc/credentials
		credentials.go#L262: 	return context.WithValue(ctx, requestInfoKey{}, ri)

	google.golang.org/grpc/internal/credentials
		credentials.go#L34: 	return context.WithValue(ctx, clientHandshakeInfoKey{}, chi)

	google.golang.org/grpc/internal/grpcutil
		metadata.go#L31: 	return context.WithValue(ctx, mdExtraKey{}, md)

	google.golang.org/grpc/internal/stats
		labels.go#L41: 	return context.WithValue(ctx, labelsKey{}, labels)

	google.golang.org/grpc/internal/transport
		http2_server.go#L1507: 	return context.WithValue(ctx, connectionKey{}, conn)

	google.golang.org/grpc/metadata
		metadata.go#L165: 	return context.WithValue(ctx, mdIncomingKey{}, md)
		metadata.go#L173: 	return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md})
		metadata.go#L191: 	return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md.md, added: added})

	google.golang.org/grpc/peer
		peer.go#L76: 	return context.WithValue(ctx, peerKey{}, p)

	net
		dial.go#L557: 		resolveCtx = context.WithValue(resolveCtx, nettrace.TraceKey{}, &shadow)

	net/http
		h2_bundle.go#L4519: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
		h2_bundle.go#L4521: 		ctx = context.WithValue(ctx, ServerContextKey, hs)
		server.go#L1937: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
		server.go#L3461: 	ctx := context.WithValue(baseCtx, ServerContextKey, s)

	net/http/httptrace
		trace.go#L41: 	ctx = context.WithValue(ctx, clientEventContextKey{}, trace)
		trace.go#L65: 		ctx = context.WithValue(ctx, nettrace.TraceKey{}, nt)

	runtime/pprof
		label.go#L62: 	return context.WithValue(ctx, labelContextKey{}, &labelMap{mergeLabelSets(parentLabels.LabelSet, labels)})

	runtime/trace
		annotation.go#L43: 	return context.WithValue(pctx, traceContextKey{}, s), s