-
public interface EmbraceInternalInterfaceProvides an internal interface to Embrace that is intended for use by hosted SDKs as their sole source of communication with the Android SDK. This is not publicly supported and methods can change at any time.
-
-
Method Summary
Modifier and Type Method Description abstract UnitlogInfo(String message, Map<String, Object> properties)See Embrace.logInfo abstract UnitlogWarning(String message, Map<String, Object> properties, String stacktrace)See Embrace.logWarning abstract UnitlogError(String message, Map<String, Object> properties, String stacktrace, Boolean isException)See Embrace.logError abstract UnitlogHandledException(Throwable throwable, LogType type, Map<String, Object> properties, Array<StackTraceElement> customStackTrace)Backwards compatible way for hosted SDKs to log a handled exception with different log levels abstract UnitrecordCompletedNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode, String traceId, NetworkCaptureData networkCaptureData)See Embrace.recordNetworkRequest abstract UnitrecordIncompleteNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, Throwable error, String traceId, NetworkCaptureData networkCaptureData)See Embrace.recordNetworkRequest abstract UnitrecordIncompleteNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, String errorType, String errorMessage, String traceId, NetworkCaptureData networkCaptureData)See Embrace.recordNetworkRequest abstract UnitrecordAndDeduplicateNetworkRequest(String callId, EmbraceNetworkRequest embraceNetworkRequest)Record a network request and overwrite any previously recorded request with the same callId abstract UnitlogComposeTap(Pair<Float, Float> point, String elementName)Logs a tap on a Compose screen element. abstract BooleanshouldCaptureNetworkBody(String url, String method)For the given URL and method, whether the response body should be captured for network request logging abstract UnitsetProcessStartedByNotification()Mark that this application process was created in response to a notification abstract BooleanisNetworkSpanForwardingEnabled()Whether the Network Span Forwarding feature is enabled -
-
Method Detail
-
logWarning
abstract Unit logWarning(String message, Map<String, Object> properties, String stacktrace)
See Embrace.logWarning
-
logError
abstract Unit logError(String message, Map<String, Object> properties, String stacktrace, Boolean isException)
See Embrace.logError
-
logHandledException
abstract Unit logHandledException(Throwable throwable, LogType type, Map<String, Object> properties, Array<StackTraceElement> customStackTrace)
Backwards compatible way for hosted SDKs to log a handled exception with different log levels
-
recordCompletedNetworkRequest
abstract Unit recordCompletedNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode, String traceId, NetworkCaptureData networkCaptureData)
See Embrace.recordNetworkRequest
-
recordIncompleteNetworkRequest
abstract Unit recordIncompleteNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, Throwable error, String traceId, NetworkCaptureData networkCaptureData)
See Embrace.recordNetworkRequest
-
recordIncompleteNetworkRequest
abstract Unit recordIncompleteNetworkRequest(String url, String httpMethod, Long startTime, Long endTime, String errorType, String errorMessage, String traceId, NetworkCaptureData networkCaptureData)
See Embrace.recordNetworkRequest
-
recordAndDeduplicateNetworkRequest
abstract Unit recordAndDeduplicateNetworkRequest(String callId, EmbraceNetworkRequest embraceNetworkRequest)
Record a network request and overwrite any previously recorded request with the same callId
- Parameters:
callId- the ID with which the request will be identified internally.embraceNetworkRequest- the request to be recorded
-
logComposeTap
abstract Unit logComposeTap(Pair<Float, Float> point, String elementName)
Logs a tap on a Compose screen element.
- Parameters:
point- the coordinates of the screen tapelementName- the name of the element which was tapped
-
shouldCaptureNetworkBody
abstract Boolean shouldCaptureNetworkBody(String url, String method)
For the given URL and method, whether the response body should be captured for network request logging
-
setProcessStartedByNotification
abstract Unit setProcessStartedByNotification()
Mark that this application process was created in response to a notification
-
isNetworkSpanForwardingEnabled
abstract Boolean isNetworkSpanForwardingEnabled()
Whether the Network Span Forwarding feature is enabled
-
-
-
-