Skip to content
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

Merged
merged 7 commits into from
Sep 8, 2021

Conversation

Zylphrex
Copy link
Member

@Zylphrex Zylphrex commented Aug 23, 2021

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

This adds a relay config to enable the computation of certain span level
attributes. The initial iteration only includes the span's exclusive time.
@Zylphrex Zylphrex marked this pull request as ready for review August 23, 2021 18:31
@Zylphrex Zylphrex requested review from a team August 23, 2021 18:31
Comment on lines 205 to 211
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),
]
Copy link
Member Author

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"]] == [
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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

@Zylphrex Zylphrex merged commit 8eab1d4 into master Sep 8, 2021
@Zylphrex Zylphrex deleted the feat/add-span-attributes-to-relay-config branch September 8, 2021 15:48
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants