nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

feat: Add OTEL with and traces metrics sample #47

Closed hangy closed 2 weeks ago

hangy commented 2 weeks ago

## 📝 Description

This adds a simple metric neighborly.db.vectors.count to report the number of vectors in the index, and neighborly.db.index.rebuild for the number of index rebuilds. Also adds a simple sample with .NET Aspire to showcase how metrics and logs might be used with OTEL.

🔗 Related Issues

Nada 😅🤷

💡 Additional Notes

Technically, nobody asked for this, yet. However, I think that any DBA will want some observability tools at some point in time.

The manually added activities aren't executed right now, because the indexing thread is never started. It might be interesting to add additional metrics and activites/traces later on.

nickna commented 2 weeks ago

Nice! OTEL support is a great addition. Also, Aspire is fire.

hangy commented 2 weeks ago

Thanks! Glad you like it. 😄