SDK quick linksLaunchDarkly’s SDKs are open source. In addition to this reference guide, we provide source, API reference documentation, and a sample application:
| Resource | Location |
|---|---|
| SDK API documentation | Observability plugin API docs |
| GitHub repository | @launchdarkly/observability-dotnet |
| Published module | NuGet |
Prerequisites and dependencies
This reference guide assumes that you are somewhat familiar with the LaunchDarkly .NET (server-side) SDK. The observability plugin is compatible with the .NET (server-side) SDK, version 8.10 and later. This plugin is designed for use with ASP.Net Core or ASP.Net:- When using .NET or netstandard2.0, the plugin works with ASP.Net Core
- When using .NET Framework, the plugin works with ASP.Net
Get started
Follow these steps to get started:- Install the plugin
- Initialize the .NET (server-side) SDK client
- Configure the plugin options
- Explore supported features
- Review observability data in LaunchDarkly
Install the plugin
LaunchDarkly uses a plugin to the .NET (server-side) SDK to provide observability. The first step is to make both the SDK and the observability plugin available as dependencies. Here’s how:Initialize the client
Next, initialize the SDK and the plugin. To initialize, you need your LaunchDarkly environment’s SDK key. This authorizes your application to connect to a particular environment within LaunchDarkly. To learn more, read Initialize the client in the .NET (server-side) SDK reference guide. Here’s how to initialize the SDK and plugin:Network requirementsThe observability plugin sends data to LaunchDarkly using port 4318 by default. If your network restricts outbound traffic to port 443, read Network requirements to override the OTLP endpoint.