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

Function InterceptionAttributesFromContext

aibridge/tracing/tracing.go:67–74  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

65}
66
67func InterceptionAttributesFromContext(ctx context.Context) []attribute.KeyValue {
68 attrs, ok := ctx.Value(traceInterceptionAttrsContextKey{}).([]attribute.KeyValue)
69 if !ok {
70 return nil
71 }
72
73 return attrs
74}
75
76func WithRequestBridgeAttributesInContext(ctx context.Context, traceAttrs []attribute.KeyValue) context.Context {
77 return context.WithValue(ctx, traceRequestBridgeAttrsContextKey{}, traceAttrs)

Callers 15

ProcessRequestMethod · 0.92
newStreamMethod · 0.92
ProcessRequestMethod · 0.92
newResponseWithKeyMethod · 0.92
ProcessRequestMethod · 0.92
newStreamMethod · 0.92
ProcessRequestMethod · 0.92
newMessageWithKeyMethod · 0.92
ProcessRequestMethod · 0.92
newStreamMethod · 0.92
ProcessRequestMethod · 0.92

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected