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(dynamic-sampling): Add isSendingSource to dynamic-sampling SDK versions endpoint [TET-271] #37295

Merged

Conversation

andriisoldatenko
Copy link
Contributor

@andriisoldatenko andriisoldatenko commented Aug 1, 2022

Add new attribute to dynamic-sampling SDK versions
endpoint OrganizationDynamicSamplingSDKVersionsEndpoint.

related snuba PR getsentry/snuba#3020

resolves TET-271

…SamplingSDKVersionsEndpoint`

Add new attribute to dymanic-sampling SDK versions endpoint

resolves [TET-271]
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 1, 2022
@andriisoldatenko andriisoldatenko changed the title feat(dynamic-sampling): Add isSendingSource to OrganizationDynamicSamplingSDKVersionsEndpoint feat(dynamic-sampling): Add isSendingSource to dynamic-sampling SDK versions endpoint [TET-271] Aug 1, 2022
transaction_name="transaction_source",
# Only available in transactions, pretend like its a tag so we dont error and just null instead
discover_name="tags[transaction_source]",
discover_name="transaction_source",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wmak / @k-fish FYI. I've changed since we need it in discover query. lmk wdyt?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK transaction_source isn't in the discover dataset, and only in the transactions dataset?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

avg_equation = 'count_if(trace.client_sample_rate, notEquals, "") / count()'
sample_rate_count_if = 'count_if(trace.client_sample_rate, notEquals, "")'
avg_sample_rate_equation = f"{sample_rate_count_if} / count()"
transaction_source_count_if = 'count_if(transaction.source, Equals, "unknown")'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here i still need clarification, what's our target here.

andriisoldatenko and others added 3 commits August 2, 2022 13:30
…sions.py

Co-authored-by: Jan Michael Auer <mail@jauer.org>
…sions.py

Co-authored-by: Jan Michael Auer <mail@jauer.org>
@andriisoldatenko andriisoldatenko force-pushed the andrii/add-source-info-to-ds-sdk-versions-endpoint branch from e483790 to ce259fd Compare August 3, 2022 16:54
@andriisoldatenko andriisoldatenko requested a review from a team as a code owner August 3, 2022 16:54
"project": [self.project.id],
}
response = self.do_request(query)
assert response.status_code == 200, response.content
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we just need to wait for new snuba version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test rely on this snuba commit getsentry/snuba@9e7b0ec

@andriisoldatenko andriisoldatenko merged commit 595159f into master Aug 4, 2022
@andriisoldatenko andriisoldatenko deleted the andrii/add-source-info-to-ds-sdk-versions-endpoint branch August 4, 2022 08:10
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants