-
- All Implemented Interfaces:
-
io.embrace.android.embracesdk.internal.InternalTracingApi
public interface EmbraceInternalInterface implements InternalTracingApi
Provides 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 abstract LonggetSdkCurrentTime()Return internal time the SDK is using in milliseconds. abstract BooleanisInternalNetworkCaptureDisabled()Whether network capture has been disabled through an internal, not-publicly supported means abstract BooleanisAnrCaptureEnabled()Whether the ANR capture service is enabled abstract BooleanisNdkEnabled()Whether the native crash capture is enabled abstract UnitlogInternalError(String message, String details)Logs an internal error to the Embrace SDK - this is not intended for public use. abstract UnitlogInternalError(Throwable error)Logs an internal error to the Embrace SDK - this is not intended for public use. abstract UnitstopSdk()Stop the Embrace SDK and disable its functionality -
Methods inherited from class io.embrace.android.embracesdk.internal.EmbraceInternalInterface
addSpanAttribute, addSpanEvent, recordCompletedSpan, recordSpan, startSpan, stopSpan -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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
-
getSdkCurrentTime
abstract Long getSdkCurrentTime()
Return internal time the SDK is using in milliseconds. It is equivalent to System.currentTimeMillis assuming the system clock did not change after the SDK has started.
-
isInternalNetworkCaptureDisabled
abstract Boolean isInternalNetworkCaptureDisabled()
Whether network capture has been disabled through an internal, not-publicly supported means
-
isAnrCaptureEnabled
abstract Boolean isAnrCaptureEnabled()
Whether the ANR capture service is enabled
-
isNdkEnabled
abstract Boolean isNdkEnabled()
Whether the native crash capture is enabled
-
logInternalError
abstract Unit logInternalError(String message, String details)
Logs an internal error to the Embrace SDK - this is not intended for public use.
-
logInternalError
abstract Unit logInternalError(Throwable error)
Logs an internal error to the Embrace SDK - this is not intended for public use.
-
-
-
-