Package com.microsoft.graph.httpcore
Class TelemetryHandler
java.lang.Object
com.microsoft.graph.httpcore.TelemetryHandler
- All Implemented Interfaces:
okhttp3.Interceptor
Middleware responsible for adding telemetry information on SDK usage
Note: the telemetry only collects anonymous information on SDK version and usage. No personal information is collected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAndroid version prefixstatic final StringThe client request ID headerstatic final StringVersion prefixstatic final StringJava version prefixstatic final StringHttp request header to send the telemetry infromation withstatic final StringCurrent SDK versionFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SDK_VERSION
Http request header to send the telemetry infromation with- See Also:
-
VERSION
Current SDK version- See Also:
-
GRAPH_VERSION_PREFIX
Version prefix- See Also:
-
JAVA_VERSION_PREFIX
Java version prefix- See Also:
-
ANDROID_VERSION_PREFIX
Android version prefix- See Also:
-
CLIENT_REQUEST_ID
The client request ID header- See Also:
-
-
Constructor Details
-
TelemetryHandler
public TelemetryHandler()
-
-
Method Details
-
intercept
@Nonnull public okhttp3.Response intercept(@Nonnull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-