-
Notifications
You must be signed in to change notification settings - Fork 208
Description
In our Spring-Boot application we set the instrumentation key programmtically using the following code:
TelemetryConfiguration telemetryConfiguration = TelemetryConfiguration.getActive();
telemetryConfiguration.setInstrumentationKey(instrumentationKey);
This code is executed before the "WebRequestTrackingFilter" is registered, so that all HTTP request metrics are properly sent with the correct instrumentation key.
Additionally we explicitly set the instrumentation key on the logback "ApplicationInsightsAppender" so that traces (i.e. logs) are also sent to Application Insights with the correct instrumentation key.
However we noticed that the AI SDK tries to perform a POST request on the following URL every 5 seconds:
POST /QuickPulseService.svc/ping?ikey=null
HTTP/1.1 400 Bad Request
Here the instrumentation key is "null" and thus the request fails.
The question now is:
-
What is the purpose of this call?
-
Is it needed somehow or is it possible to simply disable it?
-
Or is it possible to somehow pass over the instrumentation key, so that this call can also use the programatically set instrumentation key?
And finally: If -for whatever reasons- the instrumentation key is "null", then no attempt should be made in the first place to contact the Application Insights server instance.
Any help/hints welcome.
Thanks.