This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
The application failed to start with an unclear message when the user did not provide an Application Insights connection string, or if the connection string had a wrong format:
Caused by: io.opentelemetry.sdk.autoconfigure.spi.ConfigurationException: Unrecognized value for otel.metrics.exporter: azure-exporter
Now, if the user does not provide a connection string, then the application does not fail to start, and the telemetry data export is disabled. This way, the customer can check that the instrumentation code does not break something in his tests.
If the Application Insights connection string does not start with InstrumentationKey=, then now the application will fail to start with a clear error message:
com.azure.monitor.applicationinsights.spring.WrongConnectionStringException: Your Application Insights connection string seems to have the wrong format. Please check the connection string and try again.
The application failed to start with an unclear message when the user did not provide an Application Insights connection string, or if the connection string had a wrong format:
Caused by: io.opentelemetry.sdk.autoconfigure.spi.ConfigurationException: Unrecognized value for otel.metrics.exporter: azure-exporter
Now, if the user does not provide a connection string, then the application does not fail to start, and the telemetry data export is disabled. This way, the customer can check that the instrumentation code does not break something in his tests.
If the Application Insights connection string does not start with
InstrumentationKey=
, then now the application will fail to start with a clear error message:com.azure.monitor.applicationinsights.spring.WrongConnectionStringException: Your Application Insights connection string seems to have the wrong format. Please check the connection string and try again.