Uh oh!
There was an error while loading. Please reload this page.
feat: Add ray integration support (#2400) - #2444
Conversation
4ff38ec to
9064e16Compareleokster
commented
May 2, 2024
Is it planned to merge this PR? |
szokeasaurusrex
commented
May 6, 2024
@leokster Taking a look now – likely this PR will require some changes before we can merge |
1e32127 to
44e3d24CompareThe integration includes performance support. Also, add tests for the integration. Closesgetsentry#2400
44e3d24 to
a2091dbCompareglowskir
commented
May 6, 2024
@szokeasaurusrex you can do the review, I will adjust accordingly |
smeubank
commented
May 7, 2024
Might be interesting to review the PR for Langchain #2911 I am not familiar with Ray, but if it is a framework similar to Langchain, then following a similar model should be ideal cc @colin-sentry if you have any thoughts on this integration |
szokeasaurusrex
commented
May 7, 2024
Hey @glowskir, thanks for reaching out again and for contributing this PR. We are currently working on an initiative to support AI tools in the Sentry SDK, and we would be interested in learning how you are using Ray and what you hope to be able to achieve by integrating Ray with Sentry. If you are interested, we can set up a customer call with you and anyone else interested in seeing a Ray integration in Sentry, so that we can learn how you are using Ray and how a Ray integration in the SDK could help you. You can reach me at daniel.szoke@sentry.io – please let me know when you would have time. |
glowskir
commented
May 25, 2024
@szokeasaurusrex This PR introduces RayIntegration to enable out of the box distributed tracing support. Ray has high level task interface and we want to see chain of tasks as single transaction in performance tab. At the moment of creating this PR there was no Opentelemetry support, now in newer versions of ray one can use Opentelemetry facitlities provided by Ray. I don't know how Sentry integrations relate to Opentelemetry hooks tbh, whether you are planning to adapt them or ignore them but this is a thing to consider. |
szokeasaurusrex
commented
Jun 4, 2024
@glowskir, understood. In that case, we can help to get this PR merged. Before I do an in depth review, I wanted to mention a few things that might be helpful here. First of all, since it looks like Ray is mostly used with AI, it might make sense to design this integration so it is compatible with our LLM Monitoring product. If you need some inspiration for how to do this, you can look at our existing Langchain integration, which works with the LLM Monitoring feature. Additionally, I noticed while looking at your PR that you are using Please let me know whether you have any questions! I am happy to help |
antonpirker
commented
Aug 1, 2024
Hi @glowskir , i tried to use your integration with a sample ray app (I have never used ray before) Can you tell me how I can initialize sentry in the ray worker that is started when I call |
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@## master #2444 +/- ##
==========================================
- Coverage 79.71% 79.33% -0.38%
==========================================
Files 132 133 +1 Lines 14264 14335 +71 Branches 3003 3013 +10 ==========================================
+ Hits 11370 11373 +3 - Misses 2071 2140 +69 + Partials 823 822 -1
|
antonpirker
commented
Aug 2, 2024
antonpirker
commented
Aug 2, 2024
This is the |
antonpirker
commented
Aug 8, 2024
I fixed the crash when using Actors. Performance data is still not captured when using Actors but at least we are not crashing users code anymore. I also mention this in the docs, so everyone knows that Actors are not yet supported. |
sentrivana
left a comment
There was a problem hiding this comment.
See one comment, else LGTM
Uh oh!
There was an error while loading. Please reload this page.
ZacharyHampton
commented
Aug 13, 2024
Thanks for the work on this ya'll, excited to use this when merged. |
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
Adds a basic instrumentation for the Ray framework (https://www.ray.io/) Closesgetsentry#2400 ---- Co-authored-by: Anton Pirker <anton@ignaz.at> Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>

Adds a basic instrumentation for the Ray framework (https://www.ray.io/)
Closes#2400
Documentation PR: getsentry/sentry-docs#11029