Skip to content

Instantly share code, notes, and snippets.

@edengal
Created July 19, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edengal/0a2d6116d038ebdb439ef152badf9048 to your computer and use it in GitHub Desktop.
Save edengal/0a2d6116d038ebdb439ef152badf9048 to your computer and use it in GitHub Desktop.
@TimberLog(name = "etl_invocation")
public boolean runEtl(String userId, String query, String outputDir) {
TimberLogger.logContext("userId", userId);
String timbermillId = TimberLogger.getCurrentTaskId();
List<String> result = callQueryService(query, timbermillId);
boolean isSuccess = callTransformationService(result, outputDir, timbermillId);
return isSuccess;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment