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
Delay app id retrieval for Linux consumption plan and increment version (#1730)
* Delay appId retrieval for Linux Consumption Plan
* Prepare for 3.1.1 GA release
* Add link
* Remove extra brackets
Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/AiComponentInstaller.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -103,8 +103,12 @@ public void beforeByteBuddyAgent(Config config) {
103
103
publicvoidafterByteBuddyAgent(Configconfig) {
104
104
// only safe now to resolve app id because SSL initialization
105
105
// triggers loading of java.util.logging (starting with Java 8u231)
106
-
// and JBoss/Wildfly need to install their own JUL manager before JUL is initialized
107
-
AppIdSupplier.registerAndStartAppIdRetrieval();
106
+
// and JBoss/Wildfly need to install their own JUL manager before JUL is initialized.
107
+
// Delay registering and starting AppId retrieval to later when the connection string becomes available
108
+
// for Linux Consumption Plan.
109
+
if (!"java".equals(System.getenv("FUNCTIONS_WORKER_RUNTIME"))) {
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/LazyConfigurationAccessor.java
0 commit comments