(ctx context.Context, fields Map)
| 249 | type fieldsKey struct{} |
| 250 | |
| 251 | func fieldsWithContext(ctx context.Context, fields Map) context.Context { |
| 252 | return context.WithValue(ctx, fieldsKey{}, fields) |
| 253 | } |
| 254 | |
| 255 | func fieldsFromContext(ctx context.Context) Map { |
| 256 | l, _ := ctx.Value(fieldsKey{}).(Map) |