zap_otlp
zaphandler
zap_otlp | zaphandler | |
---|---|---|
1 | 1 | |
14 | 8 | |
- | - | |
6.5 | 3.4 | |
4 months ago | over 1 year ago | |
Go | Go | |
MIT License | MIT License |
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
zaphandler
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.
simplog - A simple and opinionated library that lets you set up and use zap quickly.
logbench - Golang logging library benchmarks
logger - Extremely fast human and machine-readable logger for Go. This repository is a mirror.
zax - Golang Zap logger with context
zap - Blazing fast, structured, leveled logging in Go.
xylog - Python-like logging design in Golang
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.
log - Simple leveled logging wrapper around standard log package
noodlog - 🍜 Parametrized JSON logging library in Golang which lets you obfuscate sensitive data and marshal any kind of content.