log/slog and you want the same records to flow into Squasher.
Installation
Configuration
Create one handler with your Squasher credentials, then build aslog.Logger from it.
main.go
Usage Example
main.go
Flush() call is useful during shutdown paths, CLI commands, and tests.
Custom Attributes
UseWithAttrs() for shared fields and WithGroup() for nested attributes that should stay together.
main.go
event.name, service.version, trace_id, and span_id. The handler keeps numbers and booleans typed and uses trace identifiers for log correlation.
Outcome sampling
Start with the default policy, then change only the rate you need:trace_id get the same sampling decision.