veqryn / slog-context
Use golang structured logging (slog) with context. Add and retrieve logger to and from context. Add attributes to context. Automatically read any custom context values, such as OpenTelemetry TraceID.
☆77Updated last week
Alternatives and similar repositories for slog-context:
Users that are interested in slog-context are comparing it to the libraries listed below
- Go 1.23 range functions with database/sql☆146Updated 5 months ago
- Bridge between Go testing.T and slog.☆73Updated last year
- checks usage of OpenTelemetry/Census spans☆80Updated 3 weeks ago
- Elegant middleware functions for your HTTP clients.☆102Updated 2 years ago
- 🚨 slog sampling: drop repetitive log records☆77Updated 3 weeks ago
- Go slog's Handler implementation to ensure correlation with Open-Telemetry spans.☆126Updated 2 months ago
- Use right mirror functions for string/[]byte performance bust☆44Updated 2 weeks ago
- A sharded wrapper for golang.org/x/sync/singleflight for high contention enviroments☆67Updated 3 years ago
- Optional values for Go☆103Updated 4 months ago
- Tooling for Go import cycles☆70Updated 8 months ago
- A zero-dependency generic in-memory cache Go library☆123Updated 4 months ago
- PostgreSQL Lock Client for Go☆114Updated 2 weeks ago
- Cookies, but with structs, for happiness.☆111Updated last week
- Adding "unset" state to Go's types☆82Updated last year
- 🪵 Ensure consistent code style when using log/slog☆174Updated last week
- 🚨 net/http middleware for slog logger☆67Updated last month
- Native type for dealing with dates in Go☆67Updated last week
- Golang charting and graphing library☆72Updated 2 weeks ago
- The go-xerrors is an idiomatic and lightweight package that provides a set of functions to make working with errors easier.☆63Updated 2 years ago
- Dynamically generate self-signed certificates and certificate authorities for Go tests☆74Updated 3 months ago
- Allow and block list linter for direct Go module dependencies.☆74Updated last week
- A modern generic testing assertions library for Go☆188Updated last month
- pex makes piping easier☆75Updated last year
- Container-focused Golang config: unify Env & Flag parsing in one call with minimal code and zero dependencies.☆34Updated last month
- 🚨 slog: Attribute formatting☆165Updated 3 weeks ago
- OpenTelemetry Tracing instrumentation for PostgreSQL☆127Updated 2 months ago
- Tiny wrapper around SQLX for Generic SQL queries☆48Updated 6 months ago
- An implementation of a `Nullable` type for JSON bodies, indicating whether the field is absent, set to null, or set to a value☆115Updated last week
- A robust, dependency-free go library that provides simple, thin, and user-friendly pub-sub kind of in-process event system for your Go ap…☆107Updated 8 months ago
- A go library that implements application/problem+json and application/problem+xml☆66Updated last year