chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
15.32k stars 1.28k forks source link

Metrics/Logs/Tracers for the User #39

Closed jeffchuber closed 2 years ago

jeffchuber commented 2 years ago

When the user deploys this service, they will want to:

We should offer some smart defaults around this.

jeffchuber commented 2 years ago

One such example of how to do this in fastapi https://github.com/Blueswen/fastapi-observability

jeffchuber commented 2 years ago

Metrics

Logs

I'm asking around in the YC OSS slack community about this

jeffchuber commented 2 years ago

In retrospect, this has more to do with containerization / docker than I realized. I would also really like @levand 's thoughts here!

jeffchuber commented 2 years ago

Logging - skip for now Monitoring - only for the user themselves or, in the case of Chroma, for internal debugging and development. Don't report metrics back to a chroma telemetry service however Traces/Error reporting - we do want to capture anonymized errors.

Tools

So I think I should focus this PR on error reporting / traces only for now... Integrate sentry, and make it talk to posthog. Allow the user to add their own sentry api tokens optionally as well.