MCPcopy Index your code
hub / github.com/coder/coder / WithRequestBridgeAttributesInContext

Function WithRequestBridgeAttributesInContext

aibridge/tracing/tracing.go:76–78  ·  view source on GitHub ↗
(ctx context.Context, traceAttrs []attribute.KeyValue)

Source from the content-addressed store, hash-verified

74}
75
76func WithRequestBridgeAttributesInContext(ctx context.Context, traceAttrs []attribute.KeyValue) context.Context {
77 return context.WithValue(ctx, traceRequestBridgeAttrsContextKey{}, traceAttrs)
78}
79
80func RequestBridgeAttributesFromContext(ctx context.Context) []attribute.KeyValue {
81 attrs, ok := ctx.Value(traceRequestBridgeAttrsContextKey{}).([]attribute.KeyValue)

Callers 1

AcquireMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected