zap_otlp
simplog
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zap_otlp
-
Show HN: Open-source OTLP encoder and sync for Zap (logging library for Go)
Zap OTLP is an OpenTelemetry Protocol (OTLP) encoder and sync for Zap - a popular structured logging library for Go.
Here's the Github repo - https://github.com/SigNoz/zap_otlp/
You can use this plugin to send Zap logs to any observability backend which can understand OTLP format.
Zap OTLP is designed to enhance logging capabilities in Go applications by enabling the transmission of logs from the Zap logger to an OpenTelemetry Protocol (OTLP) endpoint. This integration allows developers to seamlessly incorporate their application logs into any tool that supports OTLP.
The plugin provides a straightforward setup process where users can create two encoders: one for console output and another for OTLP.
It also includes functionality to initialize an OTLP sync, which handles the actual sending of log data to the specified OTLP endpoint. The sync can be configured with options such as batch size, resource schema, and service name, allowing for customization of how logs are grouped and identified.
Additionally, the plugin offers features like batching logs for efficient transmission, setting batch intervals, and the ability to include trace context in log entries.
This makes it particularly useful for applications that require detailed logging with distributed tracing capabilities.
The plugin also supports secure connections and can be easily configured to work with any OpenTelemetry native observability backend like SigNoz.
Do have a look and let us know what you think? Feel free to start discussions in the repo
simplog
What are some alternatives?
custom-log-marshaler - Attempt to R.I.P PII or unnecessary info in logs and reduce log ingestion costs in the process.
logger - Extremely fast human and machine-readable logger for Go. This repository is a mirror.
logbench - Golang logging library benchmarks
zax - Golang Zap logger with context
zaphandler - zaphandler will help to create slog handler using zap logger
sqldb-logger - A logger for Go SQL database driver without modifying existing *sql.DB stdlib usage.
zap - Blazing fast, structured, leveled logging in Go.
zl - 🧑💻 High Developer Experience, zap based logger. It offers rich functionality but is easy to configure and allows the user to choose the best output format for their purposes.
lg - ✍🐻 A simple golang logger that extends the standard log package.