Closed mattdowdell closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
bc45156
) 90.00% compared to head (2735b70
) 90.44%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks great! I appreciate you added the documentation as well :)
@mattdowdell I've updated the report message and rearranged the options slightly. Thank you for the contribution!
As described in #13, third-party implementations of
slog.Handler
can choose to take values out of a context to supplement the attributes already used. An example of this in my day job is adding trace IDs to enhance serviceability.This change adds the ability to optionally identify
slog
methods that do not take a context and so prevent the ability to take values from that context. Any matches can be resolved by appendingContext
to the method. For example,slog.Info
becomesslog.InfoContext
.