File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1314,11 +1314,12 @@ def _process_vroomrs_chunk_profile(profile: Profile) -> bool:
1314
1314
functions = chunk .extract_functions_metrics (
1315
1315
min_depth = 1 , filter_system_frames = True , max_unique_functions = 100
1316
1316
)
1317
- payload = build_chunk_functions_kafka_message (chunk , functions )
1318
- topic = ArroyoTopic (
1319
- get_topic_definition (Topic .PROFILES_CALL_TREE )["real_topic_name" ]
1320
- )
1321
- profile_functions_producer .produce (topic , payload )
1317
+ if functions is not None and len (functions ) > 0 :
1318
+ payload = build_chunk_functions_kafka_message (chunk , functions )
1319
+ topic = ArroyoTopic (
1320
+ get_topic_definition (Topic .PROFILES_CALL_TREE )["real_topic_name" ]
1321
+ )
1322
+ profile_functions_producer .produce (topic , payload )
1322
1323
return True
1323
1324
except Exception as e :
1324
1325
sentry_sdk .capture_exception (e )
You can’t perform that action at this time.
0 commit comments