-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(spans): Produce items from process-segments #91714
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Codecov ReportAttention: Patch coverage is
|
Files with missing lines | Patch % | Lines |
---|---|---|
...sentry/spans/consumers/process_segments/convert.py | 86.27% | 7 Missing |
Additional details and impacted files
@@ Coverage Diff @@
## master #91714 +/- ##
==========================================
+ Coverage 83.79% 87.68% +3.89%
==========================================
Files 10361 10343 -18
Lines 587529 586778 -751
Branches 22595 22469 -126
==========================================
+ Hits 492298 514523 +22225
+ Misses 94810 71816 -22994
- Partials 421 439 +18
* master: (58 commits) link: cleanup link (#91687) ref: create project_id index for organizationonboardingtask (#91918) storybook: smaller last edited (#91875) issues: fix chonk stacktrace alignment (#91891) alert: drop custom alert (#91892) insights: fix bar height (#91895) ref(span-buffer): Move max-memory-percentage to right CLI (#91924) ref(js): Factor button functionality (#91763) tests(resolve_groups): Clean up the tests (#91779) ref(span-buffer): Add backpressure (#91707) fix(nextjs-insights): project id is not passed to explore link (#91920) fix(crons): Floor seconds / microsecond on recorded dateClock (#91890) fix(uptime): Fix bug with the uptime_checks dataset in the events endpoint (#91824) ref: add state-only migration to reflect existing indexes in prod (#91901) ref: remove unnecssary metaclass (#91906) fix(stats): use data category title name (#91913) feat(issues): Add success messages to some actions (#91899) test(taskworker): Lower exec time (#91907) chore(aci): manually add spans for delayed workflow processing (#91908) chore(aci): remove uses of WorkflowFireHistory rollout columns (#91904) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
def _timestamp(value: float) -> Timestamp: | ||
return Timestamp( | ||
seconds=int(value), | ||
nanos=round((value % 1) * 1_000_000) * 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We map timestamps with full available precision. EAP will truncate those, but we do not do this here to reduce coupling.
"description": "sentry.raw_description", | ||
"duration_ms": "sentry.duration_ms", | ||
"is_segment": "sentry.is_segment", | ||
"exclusive_time_ms": "sentry.exclusive_time_ms", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exclusive_time_ms
was not part of the Relay implementation, but eap_items_span
converted this field. @phacops do we need this or should we actually map exclusive_time
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the product adapted to reading sentry.exclusive_time_ms
(
sentry/src/sentry/utils/snuba.py
Line 203 in afcaf89
"span.self_time": "exclusive_time_ms", |
"received": "sentry.received", | ||
"origin": "sentry.origin", | ||
"kind": "sentry.kind", | ||
"hash": "sentry.hash", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field is written in enrichment. We use this for performance issue detection and used to persist it.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Closes https://github.com/getsentry/streaming-planning/issues/144
cc @phacops