-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print link to debugger UI #32
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,6 +424,12 @@ private <T> PCollection<T> applyWindow( | |
return super.apply(new AssignWindows<>(transform), input); | ||
} | ||
|
||
private String debuggerMessage(String projectId, String uniqifier) { | ||
return String.format("To view the debugger console, go to " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Branding issue here. For example: "To debug your job, visit Google Cloud Debugger at: ". From their website: "Visit the Debug page of the Cloud Platform Console to use Google Cloud Debugger." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
+ "https://console.developers.google.com/debug?project=%s&dbgee=%s", | ||
projectId, uniqifier); | ||
} | ||
|
||
private void maybeRegisterDebuggee(DataflowPipelineOptions options, String uniquifier) { | ||
if (!options.getEnableCloudDebugger()) { | ||
return; | ||
|
@@ -436,6 +442,8 @@ private void maybeRegisterDebuggee(DataflowPipelineOptions options, String uniqu | |
Clouddebugger debuggerClient = Transport.newClouddebuggerClient(options).build(); | ||
Debuggee debuggee = registerDebuggee(debuggerClient, uniquifier); | ||
options.setDebuggee(debuggee); | ||
|
||
System.out.println(debuggerMessage(options.getProject(), debuggee.getUniquifier())); | ||
} | ||
|
||
private Debuggee registerDebuggee(Clouddebugger debuggerClient, String uniquifier) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: uniquifier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.