Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pranay01/signoz-openfeature-llm
https://github.com/pranay01/signoz-openfeature-llm
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pranay01/signoz-openfeature-llm
- Owner: pranay01
- Created: 2024-08-12T19:24:25.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T14:34:28.000Z (3 months ago)
- Last Synced: 2024-10-11T17:04:33.073Z (about 1 month ago)
- Language: JavaScript
- Size: 226 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SigNoz OpenFeature LLM Demo
*Next Steps*
- [ ] Send logs to SigNoz with linked traceID. Logs should also have LLM processing times and feature flag as an attribute
- [ ] Trigger alerts based on logs or traces with feature flag data and call Launchdarkly API to change feature flag value if lert is triggered
- [ ] Above can be done using Zapier or a lambda function### How to run the project
export OTEL_SERVICE_NAME="signoz-openfeature-llm"
Add `.env` file in root folder with:
```
LAUNCHDARKLY_SDK_KEY=OPENAI_API_KEY=
ANTHROPIC_API_KEY=
```### Run the server
`OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=" node --require ./tracing.cjs server.js`
### Run the client
`cd client`
`npm start`
![client-llm](https://github.com/user-attachments/assets/b351cdba-c4c5-4e54-9acd-63e9e52574ee)
![openfeature-llm](https://github.com/user-attachments/assets/22c3a623-9e4e-4ad6-a8cc-3a2ce3bc2bc6)
![logs-2](https://github.com/user-attachments/assets/c37c6030-a08b-48e3-acd7-9a52cbed74d8)
![LLM-logs](https://github.com/user-attachments/assets/46ba6ab6-0332-4bbb-ac3b-414e2c075db4)