File tree 1 file changed +5
-6
lines changed
src/sentry/spans/consumers/process_segments
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 2
2
from collections .abc import Mapping
3
3
4
4
import orjson
5
+ import sentry_sdk
5
6
from arroyo import Topic as ArroyoTopic
6
7
from arroyo .backends .kafka import KafkaProducer , build_kafka_configuration
7
8
from arroyo .backends .kafka .consumer import KafkaPayload
@@ -107,12 +108,10 @@ def _process_message(message: Message[KafkaPayload]) -> list[bytes]:
107
108
segment = orjson .loads (value )
108
109
processed = process_segment (segment ["spans" ])
109
110
return [orjson .dumps (span ) for span in processed ]
110
- except Exception : # NOQA
111
- raise
112
- # TODO: Implement error handling
113
- # sentry_sdk.capture_exception()
114
- # assert isinstance(message.value, BrokerValue)
115
- # raise InvalidMessage(message.value.partition, message.value.offset)
111
+ except Exception :
112
+ # TODO: revise error handling
113
+ sentry_sdk .capture_exception ()
114
+ return []
116
115
117
116
118
117
def _unfold_segment (spans : list [bytes ]):
You can’t perform that action at this time.
0 commit comments