Skip to content

Commit 489404e

Browse files
committed
Revert "update auto config of QuickPulse to prevent init when LF Channel present (#745)"
This reverts commit 6e75647.
1 parent 1bce1cd commit 489404e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

azure-application-insights-spring-boot-starter/src/test/java/com/microsoft/applicationinsights/autoconfigure/ApplicationInsightsTelemetryAutoConfigurationTests.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import com.microsoft.applicationinsights.internal.perfcounter.JvmPerformanceCountersModule;
3939
import com.microsoft.applicationinsights.internal.perfcounter.PerformanceCounter;
4040
import com.microsoft.applicationinsights.internal.perfcounter.PerformanceCounterContainer;
41-
import com.microsoft.applicationinsights.internal.quickpulse.QuickPulse;
4241
import com.microsoft.applicationinsights.telemetry.EventTelemetry;
4342
import com.microsoft.applicationinsights.telemetry.RequestTelemetry;
4443
import com.microsoft.applicationinsights.telemetry.Telemetry;
@@ -185,7 +184,7 @@ public void shouldBeAbleToConfigureInprocessTelemetryChannel() throws IllegalCon
185184
assertThat(channel).extracting("telemetryBuffer").extracting("transmitBufferTimeoutInSeconds").contains(123);
186185
assertThat(channel).extracting("telemetryBuffer").extracting("maxTelemetriesInBatch").contains(10);
187186
}
188-
187+
189188
@Test
190189
public void shouldBeAbleToConfigureSamplingTelemetryProcessor() {
191190
EnvironmentTestUtils.addEnvironment(context,
@@ -378,14 +377,4 @@ private void resetInternalLogger() throws Exception {
378377
f1.setAccessible(true);
379378
f1.set(InternalLogger.INSTANCE, false);
380379
}
381-
382-
/**
383-
* Resets quickpulse
384-
* @throws Exception
385-
*/
386-
private void resetQuickPulse() throws Exception {
387-
Field f1 = QuickPulse.INSTANCE.getClass().getDeclaredField("initialized");
388-
f1.setAccessible(true);
389-
f1.set(QuickPulse.INSTANCE, false);
390-
}
391380
}

0 commit comments

Comments
 (0)