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

feat(server): Ingest and normalize sample rates #910

Merged
merged 5 commits into from
Jan 14, 2021

Conversation

jan-auer
Copy link
Member

We want to be able to look at the sample rate users set for specific events and
transactions. In regular mode, Relay takes the sample rates from the effective
event item and forwards them to the upstream. In processing mode, the sample
rates are instead written into _metrics.

The JavaScript SDK implements this with getsentry/sentry-javascript#3068.

@jan-auer jan-auer requested review from a team and HazAT January 13, 2021 14:59
@jan-auer
Copy link
Member Author

jan-auer commented Jan 13, 2021

cc @lobsterkatie please double-check the test and the schema.

@lobsterkatie
Copy link
Member

lobsterkatie commented Jan 13, 2021

cc @lobsterkatie please double-check the test and the schema.

Looks good. Do the other possible values for the method ('explicitly_set' and 'inheritance') just get ignored for the moment? (Which is fine - just want to make sure they don't break things.)

@jan-auer
Copy link
Member Author

@lobsterkatie not sure if I understand correctly, do you mean if we accept other values for "id"? The identifier can be any value because is defined as string like this:

id: Annotated<String>

@lobsterkatie
Copy link
Member

Yup, that was my question, thanks. We're good.

Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

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

JS parts look good!

@jan-auer jan-auer merged commit 86c2c0f into master Jan 14, 2021
@jan-auer jan-auer deleted the feat/ingest-sample-rates branch January 14, 2021 11:52
jan-auer added a commit that referenced this pull request Jan 27, 2021
* master:
  fix: Build proper 64-bit Linux wheel
  release: 0.8.2
  chore: Switch to manylinux2010 (#917)
  meta(py): Changelog for 0.8.2
  ci: Add an action to release the library (#916)
  ref: Remove Compatibility mode for Session Aggregates (#913)
  release: 21.1.0
  ci: Fix clippy command invocation
  ci: Run clippy via the cargo action
  feat(server): Ingest and normalize sample rates (#910)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants