Title: Please add Ray framework integration for sentry/apm. · Issue #2400 · getsentry/sentry-python · GitHub
Open Graph Title: Please add Ray framework integration for sentry/apm. · Issue #2400 · getsentry/sentry-python
X Title: Please add Ray framework integration for sentry/apm. · Issue #2400 · getsentry/sentry-python
Description: Problem Statement https://www.ray.io/ I want to annotate that kind of code with spans: import ray import os import time import sentry_sdk import random import asyncio from sentry_sdk.integrations.asyncio import AsyncioIntegration logging...
Open Graph Description: Problem Statement https://www.ray.io/ I want to annotate that kind of code with spans: import ray import os import time import sentry_sdk import random import asyncio from sentry_sdk.integrations.a...
X Description: Problem Statement https://www.ray.io/ I want to annotate that kind of code with spans: import ray import os import time import sentry_sdk import random import asyncio from sentry_sdk.integrations.a...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/2400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Please add Ray framework integration for sentry/apm.","articleBody":"### Problem Statement\r\n\r\nhttps://www.ray.io/\r\n\r\nI want to annotate that kind of code with spans:\r\n\r\n```import logging\r\nimport ray\r\nimport os\r\nimport time\r\nimport sentry_sdk\r\nimport random\r\nimport asyncio\r\nfrom sentry_sdk.integrations.asyncio import AsyncioIntegration\r\n\r\nlogging.basicConfig(level=logging.DEBUG)\r\n\r\ndef step1():\r\n with sentry_sdk.start_span(description=\"step1\"):\r\n time.sleep(random.randint(200,500)/1000.)\r\ndef step2():\r\n with sentry_sdk.start_span(description=\"step2\"):\r\n time.sleep(random.randint(200,500)/1000.)\r\ndef step3():\r\n with sentry_sdk.start_span(description=\"step3\"):\r\n time.sleep(random.randint(200,500)/1000.)\r\n\r\n@ray.remote\r\ndef retrieve_task(item):\r\n step1()\r\n step2()\r\n step3()\r\n return 1\r\n\r\nasync def main():\r\n sentry_sdk.init(\r\n dsn=os.getenv('SENTRY_DSN'),\r\n traces_sample_rate=1.0,\r\n integrations=[\r\n AsyncioIntegration(),\r\n ],\r\n )\r\n #---\r\n ray.init()\r\n with sentry_sdk.start_transaction(op=\"task\", name=\"example ray task transaction\"):\r\n object_references = [\r\n retrieve_task.remote(item) for item in range(8)\r\n ]\r\n data = ray.get(object_references)\r\n print(data)\r\n\r\nif __name__ == '__main__':\r\n asyncio.run(main())\r\n```\r\n \r\nBut I only see one big transaction trace without those 3 spans.\r\n\r\n### Solution Brainstorm\r\n\r\nI think new integration needs to be done.","author":{"url":"https://github.com/dPeS","@type":"Person","name":"dPeS"},"datePublished":"2023-09-29T12:41:32Z","url":"https://github.com/getsentry/sentry-python/issues/2400"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:54d1522b-6b85-99f3-148d-557cbcebca65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C26E:2E5652:11D4D7:17577E:6B00C813 |
| html-safe-nonce | fda58345038a831d271ffb85c86226251f67a31afa41f3c728e7301d07ceca8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjZFOjJFNTY1MjoxMUQ0RDc6MTc1NzdFOjZCMDBDODEzIiwidmlzaXRvcl9pZCI6IjgyOTUzNjQ0NzIyNTI0NTA4MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c6bdca8af18ecfd4cfd159321acf122d5dc26cf0af326142b5ffbc843edad2ce |
| hovercard-subject-tag | issue:1919204082 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/2400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f59eed548d7da6012193c79937acfb865b212904011edf2a54eaf6d9e6d543a8/getsentry/sentry-python/issues/2400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f59eed548d7da6012193c79937acfb865b212904011edf2a54eaf6d9e6d543a8/getsentry/sentry-python/issues/2400 |
| og:image:alt | Problem Statement https://www.ray.io/ I want to annotate that kind of code with spans: import ray import os import time import sentry_sdk import random import asyncio from sentry_sdk.integrations.a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dPeS |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width