-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Description
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel">
<EndpointAddress>http://myendpoint/v2/track</EndpointAddress>
</TelemetryChannel>
Hi,
It seems like when we set via configuration file (ApplicationInsights.config) the EndpointAddress element that this is ignored by ServerTelemetryChannel class.
Bellow we can see that when the Initialize method is called the property is set with the value inside of configuration.EndpointContainer.Ingestion which is not the same source when loaded via configuration file:
ApplicationInsights-dotnet/BASE/src/ServerTelemetryChannel/ServerTelemetryChannel.cs
Line 326 in a26a43f
| this.EndpointAddress = new Uri(configuration.EndpointContainer.Ingestion, "v2/track").AbsoluteUri; |
ApplicationInsights-dotnet/BASE/src/ServerTelemetryChannel/ServerTelemetryChannel.cs
Lines 118 to 122 in a26a43f
| public string EndpointAddress | |
| { | |
| get { return this.TelemetrySerializer.EndpointAddress?.ToString(); } | |
| set { this.TelemetrySerializer.EndpointAddress = new Uri(value); } | |
| } |
Is my understanding correct? Is it a problem? Is there a way fix it?