Align runtime profiles with plugin-owned records
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
|
||||
const (
|
||||
MaxLogBatchEntries = 512
|
||||
MaxLogLineLength = 8192
|
||||
MaxLogQueryLimit = 10000
|
||||
)
|
||||
|
||||
@@ -63,12 +62,6 @@ func ValidateLogBatchIngest(batch domain.LogBatchIngest) error {
|
||||
if entry.Seq != batch.FirstSeq+uint64(i) {
|
||||
violations = append(violations, fmt.Sprintf("entries[%d].seq must be contiguous", i))
|
||||
}
|
||||
if strings.TrimSpace(entry.Line) == "" {
|
||||
violations = append(violations, fmt.Sprintf("entries[%d].line is required", i))
|
||||
}
|
||||
if len(entry.Line) > MaxLogLineLength {
|
||||
violations = append(violations, fmt.Sprintf("entries[%d].line is too long", i))
|
||||
}
|
||||
for key := range entry.Fields {
|
||||
if strings.TrimSpace(key) == "" {
|
||||
violations = append(violations, fmt.Sprintf("entries[%d].fields key is required", i))
|
||||
|
||||
Reference in New Issue
Block a user