Discover and explore top open-source AI tools and projects—updated daily.
Golang observability with OpenTelemetry
Top 49.1% on SourcePulse
This project provides compile-time instrumentation for Golang applications to enable OpenTelemetry observability without requiring code modifications. It targets Golang developers seeking to integrate tracing and metrics into their applications efficiently.
How It Works
The agent works by intercepting the go build
command. It automatically injects OpenTelemetry instrumentation code into the Go source files during the compilation process. This approach avoids runtime overhead and complexity associated with dynamic instrumentation, ensuring seamless integration.
Quick Start & Requirements
curl -fsSL https://cdn.jsdelivr.net/gh/alibaba/loongsuite-go-agent/install.sh | sudo bash
for Linux/macOS. Build from source with make
.go build
command with otel
, e.g., otel go build
.Highlighted Details
net/http
, grpc
, gin
, zap
, gorm
, and more.Maintenance & Community
The project welcomes contributions and feedback. A DingTalk group is available for community engagement.
Licensing & Compatibility
The repository does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project is actively open-sourcing supported libraries, implying that some may not yet be included. Users are encouraged to file bug reports for compilation failures.
2 days ago
1 day