Function
WithRequestBridgeAttributesInContext
(ctx context.Context, traceAttrs []attribute.KeyValue)
Source from the content-addressed store, hash-verified
| 74 | } |
| 75 | |
| 76 | func WithRequestBridgeAttributesInContext(ctx context.Context, traceAttrs []attribute.KeyValue) context.Context { |
| 77 | return context.WithValue(ctx, traceRequestBridgeAttrsContextKey{}, traceAttrs) |
| 78 | } |
| 79 | |
| 80 | func RequestBridgeAttributesFromContext(ctx context.Context) []attribute.KeyValue { |
| 81 | attrs, ok := ctx.Value(traceRequestBridgeAttrsContextKey{}).([]attribute.KeyValue) |
Tested by
no test coverage detected