Title: feat(rust-tracing): Support span streaming by alexander-alderman-webb · Pull Request #6433 · getsentry/sentry-python · GitHub
Open Graph Title: feat(rust-tracing): Support span streaming by alexander-alderman-webb · Pull Request #6433 · getsentry/sentry-python
X Title: feat(rust-tracing): Support span streaming by alexander-alderman-webb · Pull Request #6433 · getsentry/sentry-python
Description: Description No attribute names need to be changed. The integration does not declare its own attribute names as the integration forwards names provided by Rust tracing metadata. Adapting Tests sed commands used for converting transaction context managers: sed -i '' 's/with start_transaction():/with sentry_sdk.traces.start_span(name="custom parent"):/g' sed commands used for converting event capture: sed -i '' 's/capture_events)/capture_items)/g' sed -i '' 's/events = capture_events()/items = capture_items("event", "transaction", "span")/g' sed -i '' 's/(event,) = events/spans = [item.payload for item in items if item.type == "span"]/g' sed -i '' 's/event["spans"]/spans/g' sed -i '' 's/message, _tx = events/message, = (item.payload for item in items if item.type == "event")/g' sed -i '' 's/event, _tx = events/event, = (item.payload for item in items if item.type == "event")/g' sed -i '' '/assert len(events) == 2/d' sed -i '' '/assert len(events) == 1/d' sed -i '' 's/exc, _tx = events/exc, = (item.payload for item in items if item.type == "event")/g' sed -i '' 's/(tx,) = events/spans = [item.payload for item in items if item.type == "span"]/g' sed commands used for converting op: sed -i '' 's/span["op"]/span["attributes"]["sentry.op"]/g' sed commands used for converting origin: sed -i '' 's/["origin"]/["attributes"]["sentry.origin"]/g' sed commands used for converting description: sed -i '' 's/description/name/g' sed commands used for converting data to attributes: sed -i '' 's/["data"]/["attributes"]/g' sed commands used for converting timestamps: sed -i '' 's/"timestamp"/"end_timestamp"/g' other test changes: sed -i '' 's/sentry_sdk.get_current_span()/sentry_sdk.traces._get_current_streamed_span()/g' sed -i '' 's/assert len(spans) == 2/assert len(spans) == 3/g' sed -i '' 's/assert len(spans) == 1/assert len(spans) == 2/g' sed -i '' 's/.to_json()/._to_json()/g' sed -i '' 's/["version"] is None/["version"] == "None"/g' Issues Closes #6054 Reminders Please add tests to validate your changes, and lint your code using tox -e linters. Add GH Issue ID & Linear ID (if applicable) PR title should use conventional commit style (feat:, fix:, ref:, meta:) For external contributors: CONTRIBUTING.md, Sentry SDK development docs, Discord community
Open Graph Description: Description No attribute names need to be changed. The integration does not declare its own attribute names as the integration forwards names provided by Rust tracing metadata. Adapting Tests sed ...
X Description: Description No attribute names need to be changed. The integration does not declare its own attribute names as the integration forwards names provided by Rust tracing metadata. Adapting Tests sed ...
Opengraph URL: https://github.com/getsentry/sentry-python/pull/6433
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f260e5ce-fb27-696c-63bd-5d84f5557caa |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BAAA:2FA59:606ECA:7E1CE2:6B00CEE8 |
| html-safe-nonce | 3baf6fd4e03eb9eaf8641619882b7346caecacdbd108a165952370d62ceb7b06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUFBOjJGQTU5OjYwNkVDQTo3RTFDRTI6NkIwMENFRTgiLCJ2aXNpdG9yX2lkIjoiNDM2Mjg3NzU0MjU2MzEwNjUzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17b8ad2638554e0e69a58d43fcdb6e855b580f2117ba341af7ea2a9498bdab7e |
| hovercard-subject-tag | pull_request:3761135969 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/getsentry/sentry-python/pull/6433/files |
| twitter:image | https://avatars.githubusercontent.com/u/224035503?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224035503?s=400&v=4 |
| og:image:alt | Description No attribute names need to be changed. The integration does not declare its own attribute names as the integration forwards names provided by Rust tracing metadata. Adapting Tests sed ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4943239a6d2c591325dad6e5c313e1cafda877f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width