-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(suspect-spans): Add span attributes to relay config #28134
Conversation
This adds a relay config to enable the computation of certain span level attributes. The initial iteration only includes the span's exclusive time.
assert [span["exclusive-time"] for span in raw_event["spans"]] == [ | ||
pytest.approx(50), | ||
pytest.approx(0), | ||
pytest.approx(200), | ||
pytest.approx(0), | ||
pytest.approx(200), | ||
] |
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.
Dependent on getsentry/relay#1061
@@ -196,3 +201,11 @@ def test_transaction(self): | |||
"total.time": {"value": pytest.approx(1050)}, | |||
} | |||
} | |||
|
|||
assert [span["exclusive-time"] for span in raw_event["spans"]] == [ |
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.
Could you double-check the spelling here? Looks like this should be 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.
It's in kebab-case afaik.
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 is from the event payload, right? Payload should be all snake_case. See the parsing test in Relay: https://github.com/getsentry/relay/pull/1061/files#diff-27bbe8166c22c9062d109bab3ce15e368ab09735ec71fd1d7bb5321744c3e07cR66
This adds a relay config to enable the computation of certain span level
attributes. The initial iteration only includes the span's exclusive time.
Related relay PR: getsentry/relay#1061