aisuite
aisuite copied to clipboard
Add observability and security part of the providers
It would be great to see basic observability and security features integrated directly into BaseProvider class.
Observability:
- Logging: Track API calls, errors, and performance metrics for better debugging.
- Tracing: Integrate with OpenTelemetry for distributed tracing across providers.
- Metrics: Expose latency, throughput, and error rates to monitor provider performance.
Security:
- Input Validation: Mitigate risks like prompt injection and ensure PII masking.
- Response Filtering: Enable moderation to filter sensitive or unsafe outputs.
These features would enhance reliability, transparency, and safety.
Can i pick this up?
Added this Pull Request for logging and observability. Will add a PR for security and performance metrics once this is merged