If you have a way to differentiate the synthetic traffic in the code, for example, by viewing the headers, you can mark it as such using the telemetry initializer, for example:
public class SyntheticSourceInitializer : ITelemetryInitializer { public void Initialize(Microsoft.ApplicationInsights.Channel.ITelemetry telemetry) { if (MySyntheticCheck(HttpContext.Current.Request)) { telemetry.Context.Operation.SyntheticSource = "MySyntheticSource"; } } }
See this blog post on how to register a telemetry initializer.
Once you identify the traffic as synthetic, you can filter it.
source share