NetworkLoggingService

public interface NetworkLoggingService

Logs network calls made by the application. The Embrace SDK intercepts the calls and reports them to the API.

Functions

Link copied to clipboard
public abstract NetworkSessionV2 getNetworkCallsForSession(long startTime, long lastKnownTime)
Get the calls and counts of network calls (which exceed the limit) within the specified time range.
Link copied to clipboard
public abstract void logNetworkCall(    @NonNull() String url,     @NonNull() String httpMethod,     int statusCode,     long startTime,     long endTime,     long bytesSent,     long bytesReceived,     String traceId,     @Nullable() NetworkCaptureData networkCaptureData)
Logs a HTTP network call.
Link copied to clipboard
public abstract void logNetworkError(    @NonNull() String url,     @NonNull() String httpMethod,     long startTime,     long endTime,     String errorType,     String errorMessage,     String traceId,     @Nullable() NetworkCaptureData networkCaptureData)
Logs an exception which occurred when attempting to make a network call.