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
- 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
- SigNoz doesn't allow filtering based on span events in query builder currently.
- Openfeature sem conv only pass
flag_variant
and notflag_value
- Specs fro Opentelemetry Hooks - open-feature/.github#16
- NodeJS package for adding Otel Hooks - https://www.npmjs.com/package/@openfeature/open-telemetry-hooks