Set up LaunchDarkly observability for an app that already uses a LaunchDarkly SDK by adding the observability plugin to its existing client and opening a pull request. Use when an observability tool reports the project has never received data (observability_set_up or observabilitySetUp is false), when observability queries come back empty because nothing is instrumented, or when the user asks to add observability, error monitoring, logs, tracing, or session replay to a LaunchDarkly-enabled app.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
You're using a skill that will guide you through turning on LaunchDarkly observability for an application that already evaluates flags with a LaunchDarkly SDK. Observability (errors, logs, traces, and session replay) starts when the LaunchDarkly observability plugin is added to that SDK client. Your job is to confirm observability is not set up, get the user's agreement, add the plugin to the client the app already initializes, open a pull request, and confirm data arrives once the change runs.
MCP tools used:
find-o11y-project — confirm nothing has been received yet, and later that a service reports dataget-keys — confirm the service name once data flows (key=service_name)plugins option in the init code the app already has, or use the stack's equivalent registration (Flutter's LDObserve.init, .NET MAUI's ObservabilityPlugin). No second client, no second key, no new environment variable.privacySetting: 'strict' in the browser, every mask option turned on for mobile (see Plugin wiring).Use the signal you already have:
observability_set_up: false, or find-o11y-project returned observabilitySetUp: false: the project (or every project) has never received sessions, errors, logs, traces, or metrics. Continue.observability/investigate skill) instead.find-o11y-project without serviceName. An empty project list with observabilitySetUp: false confirms it.Do not keep retrying observability queries against a project that has never received data. They return nothing.
Tell the user what you found and what the change is, in their terms. For example:
LaunchDarkly hasn't received any observability data for this project, so there's nothing to search yet.
Observability turns on by adding the LaunchDarkly observability plugin to the LaunchDarkly client this app
already sets up (src/lib/launchdarkly.ts). It's one dependency and one line in that client's options, using
the same key, and it adds error monitoring, logs, and traces (plus session replay for browser and mobile apps,
with the strictest privacy setting). Want me to make that change and open a pull request?package.json, requirements.txt / pyproject.toml, go.mod, Gemfile, *.csproj, Podfile / Package.swift, build.gradle(.kts) / pom.xml, pubspec.yaml).asyncWithLDProvider, withLDProvider, createLDReactProvider, createClient, initialize(, init( from @launchdarkly/node-server-sdk, ldclient.set_config(Config(, ld.MakeClient / ld.MakeCustomClient, LaunchDarkly::LDClient.new, new LdClient( / LdClient.Init( / Configuration.Builder(, new LDClient( / new LDConfig.Builder(), LDClient(LDConfig(, LDClient.start(, LDClient.init(, new ReactNativeLDClient(.Follow Plugin wiring for the package and where plugins goes:
plugins option (Flutter instead registers it on the existing client with LDObserve.init(client, ...)). Keep everything else in the init unchanged.plugins.replay: const SessionReplayOptions(...) to the existing LDObserve.init call and wrap the app in SessionReplayCapture. Replay is not a second plugin, so do not add one.SessionReplayOptions as the second ObservabilityPlugin constructor argument. Replay is not a second plugin, so do not add one.If the installed SDK is below the plugin's minimum: a bump within the same major version is fine. A major-version upgrade or a different package needs the user's approval first.
launchdarkly/add-observability-plugin.<file>, reusing its key.Data arrives only after the changed code runs (locally against a LaunchDarkly environment, or after deploy).
find-o11y-project with the app's service name, or without serviceName. A project listed with services means data is flowing. Confirm the name with get-keys (productType logs or traces, key=service_name).✓ Observability is on: checkout-web is sending errors, logs, and traces to project storefront.If nothing appears within a few minutes of the app running, check: the init change is the code path that actually runs, the client initializes successfully (same key as before), the app reached the network, and the environment is the one you are querying. For accounts on the EU instance, the plugin needs the EU endpoints set; see the observability SDK docs.
| Situation | Action |
|---|---|
| No LaunchDarkly SDK in the codebase | Say observability needs the LaunchDarkly SDK first and stop. Do not install the SDK as part of this skill. |
| Stack has no observability plugin (for example PHP, Rust, edge SDKs) | Say in one line the plugin is not available for this stack yet, with the docs link, and stop. Do not substitute OpenTelemetry. |
| SDK too old for plugins, fix is a major upgrade | Ask first, naming the version problem in one line. Keep the existing SDK if the user declines. |
| Several LaunchDarkly clients (web, API, mobile) | List them, set up only the ones the user picks, one pull request. |
| Observability data already exists | Not this skill. Use the observability tools to answer the question. |
| User declines | Stop, and do not offer again in this session. |
| No permission to open pull requests | Leave the commit on a branch and give the user the branch name. |
find-o11y-project or get-keys shows the service.plugins goes for each supported stack, minimum SDK versions, and stacks without a pluginlaunchdarkly/ai-tooling
d953cb8
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.