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

Function WithInterceptionAttributesInContext

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

Source from the content-addressed store, hash-verified

61}
62
63func WithInterceptionAttributesInContext(ctx context.Context, traceAttrs []attribute.KeyValue) context.Context {
64 return context.WithValue(ctx, traceInterceptionAttrsContextKey{}, traceAttrs)
65}
66
67func InterceptionAttributesFromContext(ctx context.Context) []attribute.KeyValue {
68 attrs, ok := ctx.Value(traceInterceptionAttrsContextKey{}).([]attribute.KeyValue)

Callers 1

newInterceptionProcessorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected