perf(go): skip empty realtime payload snapshots
This commit is contained in:
@@ -321,7 +321,7 @@ func hasRealtimePayload(env envelope.FrameEnvelope) bool {
|
||||
if len(env.Fields) > 0 {
|
||||
return true
|
||||
}
|
||||
if _, ok := env.Parsed["data_units"]; ok {
|
||||
if units, ok := env.Parsed["data_units"].([]any); ok && len(units) > 0 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user