Skip to content

Commit

Permalink
Ignore request cancelation
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Dec 5, 2023
1 parent b170245 commit 21bea0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions log/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ func (l *Logger) Emit(ctx context.Context, r log.Record) {
A test implementation of the the `Logger` interface
is in [benchmark/writer_logger_test.go](benchmark/writer_logger_test.go).

Canceling the context should not affect record processing.
Among other things, log messages may be necessary to debug a
cancellation-related problem.
The context is used to pass request-scoped values such as Trace ID and Span ID.

## Compatibility

The backwards compatibility is achieved using the `embedded` design pattern
Expand Down

0 comments on commit 21bea0f

Please sign in to comment.