(ctx context.Context)
| 65 | } |
| 66 | |
| 67 | func 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 | |
| 76 | func WithRequestBridgeAttributesInContext(ctx context.Context, traceAttrs []attribute.KeyValue) context.Context { |
| 77 | return context.WithValue(ctx, traceRequestBridgeAttrsContextKey{}, traceAttrs) |
no test coverage detected