WithTrace returns the context with the given Trace
(ctx context.Context, t Trace)
| 116 | |
| 117 | // WithTrace returns the context with the given Trace |
| 118 | func WithTrace(ctx context.Context, t Trace) context.Context { |
| 119 | return context.WithValue(ctx, contextKey, t) |
| 120 | } |
| 121 | |
| 122 | // FromContext returns the stored Trace in context or Default |
| 123 | func FromContext(ctx context.Context) Trace { |
no outgoing calls