MCPcopy Index your code
hub / github.com/flyteorg/flyte / WithRequestID

Function WithRequestID

flytestdlib/contextutils/context.go:149–151  ·  view source on GitHub ↗

WithRequestID gets a new context with RequestID set.

(ctx context.Context, requestID string)

Source from the content-addressed store, hash-verified

147
148// WithRequestID gets a new context with RequestID set.
149func WithRequestID(ctx context.Context, requestID string) context.Context {
150 return metadata.AppendToOutgoingContext(context.WithValue(ctx, RequestIDKey, requestID), RequestIDKey.String(), requestID)
151}
152
153// WithGoroutineLabel gets a new context with Go Routine label key set and a label assigned to the context using
154// pprof.Labels.

Callers 1

TestGetFieldsFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by 1

TestGetFieldsFunction · 0.68