func context.WithValue

33 uses

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

	github.com/aws/smithy-go/context
		suppress_expired.go#L70: 	return context.WithValue(ctx, preserveExpiredValuesKey{}, enable)

	github.com/aws/smithy-go/middleware
		logging.go#L26: 	return context.WithValue(ctx, loggerKey{}, logger)
		stack_values.go#L16: 	return context.WithValue(ctx, stackValuesKey{}, md)
		stack_values.go#L21: 	return context.WithValue(ctx, stackValuesKey{}, nil)

	github.com/aws/smithy-go/transport/http
		middleware_headers.go#L15: 	return context.WithValue(ctx, isContentTypeAutoSet{}, isDefault)

	golang.org/x/net/http2
		server.go#L536: 	ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())
		server.go#L538: 		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#L403: 		resolveCtx = context.WithValue(resolveCtx, nettrace.TraceKey{}, &shadow)

	net/http
		h2_bundle.go#L4190: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
		h2_bundle.go#L4192: 		ctx = context.WithValue(ctx, ServerContextKey, hs)
		server.go#L1819: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
		server.go#L2906: 		req = req.WithContext(context.WithValue(req.Context(), silenceSemWarnContextKey, func() {
		server.go#L3037: 	ctx := context.WithValue(baseCtx, ServerContextKey, srv)

	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#L71: 	return context.WithValue(ctx, labelContextKey{}, &childLabels)

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