Manually record a failed transactional network request.
Compatible with all agent versions.
Failed requests are requests that fail to receive a complete response from the server caused by things like TCP timeouts, SSL failures, connection closures, and more.
The failure codes you pass into this method should correlate to Apple's documented NSURLConnection failure codes.
Required. The URL of the request.
Required. The HTTP method of the request.
Required. A timer that captures the start and end of the request.
Required. The failure codes you pass into this method should correlate to Apple's documented NSURLConnection failure codes.
[NewRelic noticeNetworkFailureForURL:[NSURL URLWithString:@"https://www.newrelic.com"]httpMethod:@"GET"withTimer:[[NRTimer alloc] init]andFailureCode:NSURLErrorTimedOut];
NewRelic.noticeNetworkFailure(for: URL(string: "https://www.newrelic.com"), httpMethod: "GET",with: NRTimer(), andFailureCode: NSURLErrorTimedOut)