We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f40cd15 + c407311 commit 6913df4Copy full SHA for 6913df4
core/src/main/java/com/microsoft/applicationinsights/TelemetryClient.java
@@ -106,8 +106,8 @@ public TelemetryContext getContext() {
106
* @return 'true' if tracking is disabled, 'false' otherwise.
107
*/
108
public boolean isDisabled() {
109
- return
110
- Strings.isNullOrEmpty(getContext().getInstrumentationKey()) || configuration.isTrackingDisabled();
+ return (Strings.isNullOrEmpty(configuration.getInstrumentationKey()) && Strings.isNullOrEmpty(getContext().getInstrumentationKey()))
+ || configuration.isTrackingDisabled();
111
}
112
113
/**
0 commit comments