Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pranay01/signoz-openfeature-example
This example shows how to instrument your JS code with openfeature and monitor it via SigNoz
https://github.com/pranay01/signoz-openfeature-example
Last synced: 24 days ago
JSON representation
This example shows how to instrument your JS code with openfeature and monitor it via SigNoz
- Host: GitHub
- URL: https://github.com/pranay01/signoz-openfeature-example
- Owner: pranay01
- Created: 2024-08-08T08:47:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T14:18:08.000Z (3 months ago)
- Last Synced: 2024-10-11T17:08:15.978Z (about 1 month ago)
- Language: JavaScript
- Size: 1.33 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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=" node --require ./tracing.cjs app.js`### Status
- [x] Enable Feature flag using OpenFeature
- [x] Set up a feature flag backend system (setup LaunchDarkly)
- [x] Check the traces are being seen in SigNoz Cloud
- [x] check how to add flag evaluation results via Opentelemetry Hooks
- [x] 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
- Specs fro Opentelemetry Hooks - https://github.com/open-feature/.github/issues/16
- NodeJS package for adding Otel Hooks - https://www.npmjs.com/package/@openfeature/open-telemetry-hooks### Demo Video
[![YouTube](http://i.ytimg.com/vi/RZSEi8csXK0/hqdefault.jpg)](https://www.youtube.com/watch?v=RZSEi8csXK0)#### Screenshot
![openfeature-signoz](https://github.com/user-attachments/assets/c8315545-998f-40ec-a6fe-8dea392af9ac)