getsentry / getsentry/sentry-python

Create Ray Serve integration

Open
#3,231 0 comments 8 reactions 0 assignees View on GitHub
Feature New Integration Python
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 1h
Merged PRs (30d)
213

Description

### Problem Statement

[From Ray Serve's docs](https://docs.ray.io/en/latest/serve/index.html):

> Ray Serve is a scalable model serving library for building online inference APIs. Serve is framework-agnostic, so you can use a single toolkit to serve everything from deep learning models built with frameworks like PyTorch, TensorFlow, and Keras, to Scikit-Learn models, to arbitrary Python business logic. It has several features and performance optimizations for serving Large Language Models such as response streaming, dynamic request batching, multi-node/multi-GPU serving, etc.

We should create a Ray Serve integration (ideally both tracing and errors). This integration was requested during a customer call with @leokster and @smeubank ([internal call notes](https://www.notion.so/sentry/Kaiko-ai-0b4c4d11e2794d358ec7dd2fdb13dcd5?pvs=4)), and it would help enhance our LLM Monitoring offering.

### Solution Brainstorm

Ray [integrates with OTel](https://docs.ray.io/en/latest/ray-observability/user-guides/ray-tracing.html), so we might want to wait until #2251 is implemented so we can use OTel for this integration. However, the Ray's OTel integration is no longer actively maintained, so we might need to fork it and maintain it ourselves.

Related: #2400 (Ray Remote integration)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.