.NET APM agent An existing connection was forcibly closed by the remote host

Another question regarding the application you have instrumented by the agent. Is the excerpt containing Agent.Tracer.CaptureTransaction the whole program? Namely does this program terminate right after the call to Agent.Tracer.CaptureTransaction returns? If so please add a short sleep (let's say 10 seconds) after Agent.Tracer.CaptureTransaction returns but before the end of the program and see if running a modified program causes lines containing [request] to appear in the APM Server logs.

Agent.Tracer.CaptureTransaction("test_name", "test_type", () =>
{
	// ...
});

Thread.Sleep(1000);

Since the agent sends data to APM Server asynchronously it's possible that the program terminates before agent has a chance to send anything to APM Server.