func context.WithValue

27 uses

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

	golang.org/x/net/http2
		server.go#L572: 	ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())
		server.go#L574: 		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#L791: 	return context.WithValue(ctx, rpcInfoContextKey{}, &rpcInfo{
		server.go#L1750: 	return context.WithValue(ctx, streamKey{}, stream)

	google.golang.org/grpc/internal/credentials
		credentials.go#L29: 	return context.WithValue(ctx, requestInfoKey{}, ri)
		credentials.go#L48: 	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/transport
		http2_server.go#L1460: 	return context.WithValue(ctx, connectionKey{}, conn)

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

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

	google.golang.org/grpc/stats
		stats.go#L251: 	return context.WithValue(ctx, outgoingTagsKey{}, b)
		stats.go#L270: 	return context.WithValue(ctx, incomingTagsKey{}, b)
		stats.go#L293: 	return context.WithValue(ctx, outgoingTraceKey{}, b)
		stats.go#L311: 	return context.WithValue(ctx, incomingTraceKey{}, b)

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

	net/http
		h2_bundle.go#L4619: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
		h2_bundle.go#L4621: 		ctx = context.WithValue(ctx, ServerContextKey, hs)
		server.go#L1941: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
		server.go#L3422: 	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