Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Open-source OTLP encoder and sync for Zap (logging library for Go)
3 points by pranay01 9 months ago | hide | past | favorite
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




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: