Possible to view logs from Temporal Web UI?

Is it possible to view worker logs in the Temporal Web UI (with the Java SDK)? When workflows are spread over multiple worker nodes, it can be difficult to view the logs end-to-end for a single workflow.

Or are we expected to always include the workflowId in our logs, and perform our own tracing?

Or are we expected to always include the workflowId in our logs, and perform our own tracing?

You don’t have to do this manually, just specify it in pattern of your logback config, sample here.
Here are all the tags you can use.

Via web ui you can access the stack trace for the running executions.

and perform our own tracing

Not sure what you mean here exactly. You could set up distributed logging with for example logback and Fluentd.

Seeing logs through Temporal Web UI is not currently possible.

The WorkflowId is already included in the logs through MDC, among other keys. Make sure to include MDC into the log output.

Awesome. Thank you both. MDC tags work sufficiently for my use case. It would be interesting if the Temporal web UI could capture the logging output as well though.