This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LocalOutputPipeConfig config = new LocalOutputPipeConfig.Builder().url("http://localhost:9200").env("local").build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TimberLogger.bootstrap(new LocalOutputPipe(config)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TimberLog(name = "method_to_log") | |
public static void methodToLog(){ | |
doSomething() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TimberLogger.exit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.datorama</groupId> | |
<artifactId>timbermill-client</artifactId> | |
<version>2.0.0</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TimberLog(name = "etl_invocation") | |
public boolean runEtl(String userId, String outputDir) { | |
TimberLogger.logContext("userId", userId); | |
String timbermillId = TimberLogger.getCurrentTaskId(); | |
List<String> result = callQueryService(timbermillId); | |
boolean isSuccess = callTransformationService(timbermillId, result, outputDir); | |
return isSuccess; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TimberLog(name = "etl_invocation") | |
public boolean runEtl(String userId, String outputDir) { | |
TimberLogger.logContext("userId", userId); | |
String timbermillId = TimberLogger.getCurrentTaskId(); | |
List<String> result = callQueryService(timbermillId); | |
boolean isSuccess = callTransformationService(timbermillId, result, outputDir); | |
return isSuccess; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TimberLog(name = "etl_invocation") | |
public boolean runEtl(String userId, String outputDir) { | |
TimberLogger.logContext("userId", userId); | |
String timbermillId = TimberLogger.getCurrentTaskId(); | |
List<String> result = callQueryService(timbermillId); | |
boolean isSuccess = callTransformationService(timbermillId, result, outputDir); | |
return isSuccess; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<String> query(String query, String timbermillParentId) throws InterruptedException { | |
String id = TimberLogger.start("query", timbermillParentId, LogParams.create().text("sql", query)); | |
try { | |
authorized(id); | |
List<String> list = runSql(query); | |
TimberLogger.success(); | |
return list; | |
} catch (Throwable t){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<String> query(String query, String timbermillParentId) throws InterruptedException { | |
String id = TimberLogger.start("query", timbermillParentId, LogParams.create().text("sql", query)); | |
try { | |
authorized(id); | |
List<String> list = runSql(query); | |
TimberLogger.success(); | |
return list; | |
} catch (Throwable t){ |
OlderNewer