zl
zap_otlp
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.
zl
We haven't tracked posts mentioning zl yet.
Tracking mentions began in Dec 2020.
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
What are some alternatives?
stable - Streaming pretty text table for Golang
custom-log-marshaler - Attempt to R.I.P PII or unnecessary info in logs and reduce log ingestion costs in the process.
logit - 🪵 CLI tool to handle JSON logs
logbench - Golang logging library benchmarks
phuslu/log - Fastest structured logging
simplog - A simple and opinionated library that lets you set up and use zap quickly.
mlog - A simple logging module for go, with a rotating file feature and console logging.
zap - Blazing fast, structured, leveled logging in Go.
slog
zaphandler - zaphandler will help to create slog handler using zap logger
xlog - xlog is a logger for net/context aware HTTP applications
zax - Golang Zap logger with context