Overview
This topic documents how to get started with the LaunchDarkly observability plugin for the Go SDK. The Go SDK supports the observability plugin for error monitoring, logging, and tracing.LaunchDarkly’s SDKs are open source. In addition to this reference guide, we provide source, API reference documentation, and a sample application:
Prerequisites and dependencies
This reference guide assumes that you are somewhat familiar with the LaunchDarkly Go SDK. The observability plugin is compatible with the Go SDK, version 7.11 and later. Using the observability plugin requires Go 1.24.3 or higher.Get started
Follow these steps to get started:- Install the plugin
- Initialize the Go SDK client
- Configure the plugin options
- Explore supported features
- Review observability data in LaunchDarkly
Install the plugin
LaunchDarkly uses a plugin to the Go SDK to provide observability. The first step is to make both the SDK and the observability plugin available as dependencies. How you do this depends on what dependency management system you are using:- If you are using the standard Go modules system, import the SDK packages in your code and
go buildwill automatically download them. The SDK and its dependencies are modules. - Otherwise, use the
go getcommand and specify the SDK version, such asgo get github.com/launchdarkly/go-server-sdk/v7andgo get github.com/launchdarkly/observability-sdk/go.