feat(profiling): Add task for taskbroker passthrough mode#115065
Draft
feat(profiling): Add task for taskbroker passthrough mode#115065
Conversation
19bdf6d to
ea292c8
Compare
Add `process_profile_from_kafka` task that accepts raw Kafka message bytes for use with taskbroker's passthrough mode. This allows taskbroker to read directly from the ingest-profiles Kafka topic. Changes: - New task `process_profile_from_kafka` in `ingest.profiling.passthrough` namespace - Refactored `_process_profile_message` to share logic between consumer and task - Removed base64 encoding - tasks now accept bytes directly - Use Kafka headers for killswitch/sampled when available, fall back to message body Depends on getsentry/taskbroker#623 for exposing Kafka headers to tasks. STREAM-882
ea292c8 to
5e0fcac
Compare
1 task
2f50369 to
5e0fcac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
process_profile_from_kafkatask for taskbroker's passthrough mode (STREAM-882). This allows taskbroker to read directly from theingest-profilesKafka topic and dispatch tasks without a separate consumer.process_profile_from_kafkainingest.profiling.passthroughnamespace_process_profile_messageDependencies
Depends on getsentry/taskbroker#623 for exposing Kafka headers to tasks.
Test plan
Fixes STREAM-882