Skip to content

Commit c57e0d0

Browse files
committed
Enable needed monitors only
1 parent a17535b commit c57e0d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/InstanaAgent/Configuration/InstanaConfiguraton.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ struct InstanaConfiguration: Equatable {
3535
case memoryWarning
3636
case framerateDrop(frameThreshold: UInt)
3737
case alertApplicationNotResponding(threshold: Instana.Types.Seconds)
38-
39-
static let defaults: Set<MonitorTypes> = [.http,
40-
.memoryWarning,
41-
.framerateDrop(frameThreshold: 20),
42-
.alertApplicationNotResponding(threshold: 2.0)]
38+
static let current: Set<MonitorTypes> = [.http]
39+
static let all: Set<MonitorTypes> = [.http,
40+
.memoryWarning,
41+
.framerateDrop(frameThreshold: 20),
42+
.alertApplicationNotResponding(threshold: 2.0)]
4343
}
4444

4545
struct Defaults {
@@ -74,7 +74,7 @@ struct InstanaConfiguration: Equatable {
7474
key: key,
7575
httpCaptureConfig: httpCaptureConfig,
7676
suspendReporting: SuspendReporting.defaults,
77-
monitorTypes: MonitorTypes.defaults,
77+
monitorTypes: MonitorTypes.current,
7878
transmissionDelay: Defaults.transmissionDelay,
7979
transmissionLowBatteryDelay: Defaults.transmissionLowBatteryDelay,
8080
gzipReport: Defaults.gzipReport,

0 commit comments

Comments
 (0)