How can I change the TelemetryChannel properties for Application Insights?
Microsoft provides documentation on many of the parameters that can be set for the TelemetryChannel class in Application Insights.
But I cannot find any explanation of how these settings can be set.
Setting them in ApplicationInsights.config file like this doesn't work for my web application:
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel">
<DataUploadIntervalInSeconds>1</DataUploadIntervalInSeconds>
<MaxTelemetryBufferCapacity>1</MaxTelemetryBufferCapacity>
</TelemetryChannel>
I just can't influence my web app to respect these settings.
How can these parameters be configured?
+3
source to share
1 answer
The git config example below triggers the idea of using. You must use Profiles and set these parameters.
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<ActiveProfile>Production</ActiveProfile>
<Profiles>
<Profile name="Production">
<!-- <ServerAnalytics> controls Application Insights Telemetry SDK settings. -->
<ServerAnalytics enabled="true">
<!-- The frequency in seconds with which the SDK uploads data to Application Insights. -->
<DataUploadIntervalInSeconds>60</DataUploadIntervalInSeconds>
</Profile>
</Profiles>
</ApplicationInsights>
0
source to share