Skip to content

Commit 04d666f

Browse files
authored
Fix quick pulse disabled option (#1824)
* Fix quick pulse disabled option * Fix test logging
1 parent 24ce66d commit 04d666f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/quickpulse/QuickPulseDataCollector.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ synchronized FinalCounters peek() {
176176
}
177177

178178
public void add(TelemetryItem telemetryItem) {
179+
if (telemetryClient == null) {
180+
// quick pulse is not enabled
181+
return;
182+
}
183+
179184
if (!telemetryItem.getInstrumentationKey().equals(getInstrumentationKey())) {
180185
return;
181186
}

0 commit comments

Comments
 (0)