Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 2.65 KB

feature-flags.md

File metadata and controls

42 lines (26 loc) · 2.65 KB

Feature Flags

Connecting OpenTelemetry spans to your feature flags implementation provides a clear connection between the code, your product and engineering teams, and what your customers are seeing in production. The full context from OpenTelemetry removes the mystery when managing your deployments and customer experience.

What are you looking to do?
Add new telemetry to your feature flag SDK or library
See example integrations

Add New Instrumention to your SDK or library

The goal here is to connect feature flag state and customer experience to the full picture of both production system state so that engineers can move faster in building the product.

Instrument

  1. Find the OpenTelemetry SDK for the language(s) or framework(s) used by your SDK

  2. Import the language-specific OpenTelemetry API and patch your library method(s)

  3. Use the OpenTelemetry docs to add spans, metrics, and logs to annotate calls to retrieve feature flags produced by your SDK with more actionable context

Run and Verify

  1. Send data from your product to an OpenTelemetry collector that outputs to the console and verify output.
  2. Optional: verify in an OpenTelemetry production tool of your choice

Contribute your integration to the OpenTelemetry ecosystem

Make your code usable to as many people as possible! If you're looking for help here, contact us at partnerships@lightstep.com. We'd love to help support you!


Example Integrations

These example solutions use plugins to generate metrics, logs or traces by automatically-instrumenting Javascript libaries or frameworks. No change to the underlying library or framework is needed.

Instrumentation Package Instrumented Package
opentelemetry-plugin-splitio @splitsoftware/splitio
opentelemetry-plugin-launchdarkly-node-server launchdarkly-node-server-sdk