Skip to content

Commit f514c4b

Browse files
committed
2 parents 82e7a9f + 11b86b9 commit f514c4b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Sampling fixes throughput by dropping repetitive log entries.
2222
- [slog-gin](https://github.com/samber/slog-gin): Gin middleware for `slog` logger
2323
- [slog-echo](https://github.com/samber/slog-echo): Echo middleware for `slog` logger
2424
- [slog-fiber](https://github.com/samber/slog-fiber): Fiber middleware for `slog` logger
25+
- [slog-chi](https://github.com/samber/slog-chi): Chi middleware for `slog` logger
2526
- [slog-datadog](https://github.com/samber/slog-datadog): A `slog` handler for `Datadog`
2627
- [slog-rollbar](https://github.com/samber/slog-rollbar): A `slog` handler for `Rollbar`
2728
- [slog-sentry](https://github.com/samber/slog-sentry): A `slog` handler for `Sentry`
@@ -66,13 +67,10 @@ The sampling middleware can be used standalone or with `slog-multi` helper.
6667

6768
```go
6869
type UniformSamplingOption struct {
69-
// This will log the first `Threshold` log entries with the same level and message
70-
// in a `Tick` interval as-is. Following that, it will allow `Rate` in the range [0.0, 1.0].
71-
Tick time.Duration
72-
Threshold uint64
73-
Rate float64
70+
// The sample rate for sampling traces in the range [0.0, 1.0].
71+
Rate float64
7472

75-
// Optional hooks
73+
// Optional hooks
7674
OnAccepted func(context.Context, slog.Record)
7775
OnDropped func(context.Context, slog.Record)
7876
}

0 commit comments

Comments
 (0)