/signoz-openfeature-example

This example shows how to instrument your JS code with openfeature and monitor it via SigNoz

Primary LanguageJavaScript

ReadMe

This example shows instrumenting a nodejs application with OpenFeature and using Launchdarkly as the feature flag backend provider. Then using SigNoz to visualise the openfeature flags in span events

In bash: export OTEL_SERVICE_NAME="openfeature-example"

Run this using OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=<SIGNOZ_INGESTION_KEY>" node --require ./tracing.cjs app.js

Status

  • Enable Feature flag using OpenFeature
  • Set up a feature flag backend system (setup LaunchDarkly)
  • Check the traces are being seen in SigNoz Cloud
  • check how to add flag evaluation results via Opentelemetry Hooks
  • Visualising feature flags in SigNoz trace detail page, events section

Current Issues

  • SigNoz doesn't allow filtering based on span events in query builder currently.
  • Openfeature sem conv only pass flag_variant and not flag_value

Resources

Demo Video

YouTube

Screenshot

openfeature-signoz