You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the other SDKs use the `APPLICATION_INSIGHTS_IKEY` environment
variable to configure the instrumentation key for Application Insights
and instead use `APPINSIGHTS_INSTRUMENTATIONKEY`.
For consistency with the other SDKs (e.g. Dot-Net https://aka.ms/n2ruy1
or Node https://aka.ms/v8r0pk) this Java SDK should also support the
more common environment variable name to avoid confusion for developers
who have experience with the non-Java SDKs.
// First, check whether an i-key was provided as a java system property i.e. '-DAPPLICATION_INSIGHTS_IKEY=i_key', or '-DAPPINSIGHTS_INSTRUMENTATIONKEY=i_key'
Copy file name to clipboardExpand all lines: core/src/test/java/com/microsoft/applicationinsights/internal/config/TelemetryConfigurationFactoryTest.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,17 @@ public void systemPropertyIKeyBeforeConfigurationIKeyTest() {
0 commit comments