-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(profiles): accept compressed data #92003
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
Conversation
d0201c5
to
8d216b6
Compare
src/sentry/profiles/task.py
Outdated
|
||
def decode_payload(encoded: str) -> dict[str, Any]: | ||
|
||
def decode_payload(encoded: str | bytes) -> dict[str, Any]: |
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 could eliminate bytes
here and in the task signature as the profiles consumer is always sending str
now.
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.
Sounds good, done. Removed tests that encodes into bytes as well
8d216b6
to
c6cafe6
Compare
c6cafe6
to
1a6b2d3
Compare
1a6b2d3
to
4d39f18
Compare
hack to start migrating profiles to zlib compression. This lets the function support both kinds of encoded strings (compressed and uncompressed) The rollout plan is as follows: 1. Rollout this change 2. Rollout the pr where we can compress a portion of the profile activations 3. Once 100% of all profiles activation is compressed, we can remove the delimiter symbol.
hack to start migrating profiles to zlib compression. This lets the function support both kinds of encoded strings (compressed and uncompressed)
The rollout plan is as follows: