SDK
Go
Dash0's Go integration offers visibility into your systems. Leverage Go for secure, scalable applications with this powerful open-source language.
Overview
Instrumenting your Go application with tracing, logging, and metrics provides valuable insights into its runtime behavior and performance. This instrumentation allows your application to generate telemetry data, which can then be used for effective monitoring, troubleshooting, and performance optimization.
Use Cases
- •Understand outgoing and incoming HTTP requests through traces and metrics. Allowing drill-downs to the database level.
- •You can see which database statements were executed and how long they took, which gives you valuable data to optimize your applications.
- •Reveal (uncaught) errors and the context in which they happened.
Setup
Install
OpenTelemetry comes with an SDK to instrument your Go application and ready-made instrumentation for common packages. We recommend you to follow the official OpenTelemetry Go getting started guide.
Configure
Most instrumentation in OpenTelemetry can be configured using environment variables. Specify the following variables to configure where telemetry should be sent.
Kubernetes Setup
In case you are not using the Dash0 operator for Kubernetes to deploy your application, you should extend the OpenTelemetry resource attributes to include the Pod UID. This is important to merge the resources between logs, traces and metrics.
For complete documentation including code examples and configuration details, visit the Dash0 Hub.
View Full Documentation