Implement NetworkProvider for Instaloom
Summary:
Write IG network events into Loom trace with "NETWORK" category.
* Include Queue time
* Add "url", "http method", "requestType", "cachePolicy" and "behavior" into the trace annotation.
@@ -278,6 +278,16 @@ final public class Logger {
return writeKeyValueStringWithMatch(provider, returnedMatchID, strKey, strValue);
}
+ public static int writeMetadata(
+ int provider, int matchID, @Nullable String strKey, String strValue) {
+ if (!sInitialized
+ || (provider != ProfiloConstants.PROVIDER_PROFILO_SYSTEM
+ && !TraceEvents.isEnabled(provider))) {
+ return ProfiloConstants.TRACING_DISABLED;
+ }
+ return writeKeyValueStringWithMatch(provider, matchID, strKey, strValue);
+ }
+
public static int writeKeyValueStringWithMatch(
int provider,
int matchID,
