Skip to content

Commit

Permalink
fix(lint): change formatting to avoid of long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kkujawa-sumo committed May 9, 2024
1 parent 7742c04 commit 8b6c48d
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions tests/integration/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,32 @@ import (
type MetricsCollector string

const (
tickDuration = 3 * time.Second
waitDuration = 1 * time.Minute
expectedEventCount uint = 50 // number determined experimentally
tickDuration = 3 * time.Second
waitDuration = 1 * time.Minute
// number determined experimentally
expectedEventCount uint = 50
logsGeneratorCount uint = 1000
// number of log records in single loop with default multiline support only, see: tests/integration/yamls/pod_multiline_long_lines.yaml
logRecords = 4 + 10
// number of log records in single loop with multiple multilines support, see: tests/integration/yamls/pod_multiline_long_lines.yaml
multipleLogRecords = 4 + 4
logLoops = 500 // number of loops in which logs are generated, see: tests/integration/yamls/pod_multiline_long_lines.yaml
multilineLogCount uint = logRecords * logLoops
multipleMultilineLogCount uint = multipleLogRecords * logLoops
tracesPerExporter uint = 5 // number of traces generated per exporter
spansPerTrace uint = 2
Prometheus MetricsCollector = "prometheus"
Otelcol MetricsCollector = "otelcol"
TailingSidecarCount uint = 150 // number of logs generated by tailing sidecar test (50 * 3), see: tests/inegration/yamls/tailing-sidecar-test.yaml
AnnotationsLogsCount uint = 150 // number of logs generated by containers used in annotations test (50 * 3), see: tests/inegration/yamls/annotations-test.yaml
NamespaceAnnotationsLogsCount uint = 150 // number of logs generated by containers used in annotations test (50 * 3), see: tests/inegration/yamls/namespace-annotations-test.yaml
curlAppMaxWaitTime uint = 180
curlAppSleepInterval uint = 5
multipleLogRecords = 4 + 4
// number of loops in which logs are generated, see: tests/integration/yamls/pod_multiline_long_lines.yaml
logLoops = 500
multilineLogCount uint = logRecords * logLoops
multipleMultilineLogCount uint = multipleLogRecords * logLoops
// number of traces generated per exporter
tracesPerExporter uint = 5
spansPerTrace uint = 2
Prometheus MetricsCollector = "prometheus"
Otelcol MetricsCollector = "otelcol"
// number of logs generated by tailing sidecar test (50 * 3), see: tests/inegration/yamls/tailing-sidecar-test.yaml
TailingSidecarCount uint = 150
// number of logs generated by pod annotations test (50 * 3), see: tests/inegration/yamls/annotations-test.yaml
AnnotationsLogsCount uint = 150
// number of logs generated by containers used in namespace annotations test (50 * 3), see: tests/inegration/yamls/namespace-annotations-test.yaml
NamespaceAnnotationsLogsCount uint = 150
curlAppMaxWaitTime uint = 180
curlAppSleepInterval uint = 5
)

func GetMetricsFeature(expectedMetrics []string, metricsCollector MetricsCollector) features.Feature {
Expand Down

0 comments on commit 8b6c48d

Please sign in to comment.