Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve context in
With()
calls (#17)
Currently `With()` will reset context back to `context.Background()`, causing the `wrap/wrapf` calls to lose the original context. This affects the `clog/gcp` handler who relies on a value keyed with `"trace"` being set on the context ([see](https://github.com/chainguard-dev/clog/blob/main/gcp/trace.go#L110-L116)) (we should use a typed value though, but that's in a different PR). --------- Signed-off-by: Nghia Tran <tcnghia@gmail.com>
- Loading branch information