OpenTelemetry for Go
OpenTelemetry offers flexible APIs and SDKs for instrumenting Go applications. With lightweight libraries, you can capture traces, logs, and metrics without adding unnecessary overhead.Installation
Install the necessary OpenTelemetry Go modules:👉 OpenTelemetry Go Getting Started
Auto-Instrumentation
Auto-instrumentation lets you automatically trace common libraries such as HTTP clients, database drivers, and more without needing to modify your code. OpenTelemetry provides auto-instrumentation libraries for many popular languages, making it fast to get started with tracing. Go favors manual instrumentation first, but several libraries offer automatic instrumentation wrappers (e.g., gRPC, HTTP). Learn more:👉 Go Instrumentation Libraries
Manual Instrumentation
Manual instrumentation gives you full control over your traces, allowing you to create spans wherever needed. You can customize span names, attributes, and relationships to capture the most important parts of your application’s flow. You can create spans directly in your Go code:👉 Go Manual Instrumentation Guide