Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pranay01/signoz-openfeature-llm


https://github.com/pranay01/signoz-openfeature-llm

Last synced: 24 days ago
JSON representation

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)