Class ConnectionString

java.lang.Object
com.microsoft.applicationinsights.connectionstring.ConnectionString

public final class ConnectionString extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    configure(String connectionString)
    When using this method to initialize the connection string after startup, you will need to set connectionStringConfiguredAtRuntime to true inside of the applicationinsights.json configuration file, e.g.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • configure

      public static void configure(String connectionString)
      When using this method to initialize the connection string after startup, you will need to set connectionStringConfiguredAtRuntime to true inside of the applicationinsights.json configuration file, e.g.
         {
           "connectionStringConfiguredAtRuntime": true
         }
       

      If the connection string has already been set then this method logs a warning and does nothing.