Skip to content

Commit 0ac09d6

Browse files
heitorlessato-mc
andauthored
fix: apply Tom's suggestion
Co-authored-by: Tom McCarthy <[email protected]>
1 parent fd19e73 commit 0ac09d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/core/logger.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Sampling allows you to set your Logger Log Level as DEBUG based on a percentage
226226

227227
This is useful when you want to troubleshoot an issue, say a sudden increase in concurrency, and you might not have enough information in your logs as Logger log level was understandably set as INFO.
228228

229-
Sampling calculation happens at the Logger class initialization. This means sampling will unlikely if you have a steady low number of invocations, depending on what you configured it.
229+
Sampling decision happens at the Logger class initialization, which only happens during a cold start. This means sampling may happen significant more or less than you expect if you have a steady low number of invocations and thus few cold starts.
230230

231231
<Note type="info">
232232
If you want Logger to calculate sampling on every invocation, then please open a feature request.

0 commit comments

Comments
 (0)