WithRootName returns a copy of parent with the root name included
(parent context.Context, name string)
| 67 | |
| 68 | // WithRootName returns a copy of parent with the root name included |
| 69 | func WithRootName(parent context.Context, name string) context.Context { |
| 70 | return WithValue(parent, rootNameKey, name) |
| 71 | } |
| 72 | |
| 73 | // WithValue returns a copy of parent in which the value associated with key is val. |
| 74 | func WithValue(parent context.Context, key interface{}, val interface{}) context.Context { |
no test coverage detected