Repository navigation
feat: added support for streaming stdout when --progress=plain - #7069
Conversation
7d86438 to
2db590e
Compare
There was a problem hiding this comment.
the span name is not always get cause otel emit the spans until span.End() called.
may consider set span name in log attrs too.
b8b2b38 to
74f8714
Compare
|
I think this makes sense 🎉 I'm really not familiar with how To me, it feels confusing that the logic for adding new views/etc is really complex - ideally, we'd have an |
|
There were still some color issues (particularly in the summary that's still printed at the end), so pushed a fix for that (the extra |
|
I'd like to do some further refactoring of this later, but for now, this fixes the issue, and it would be awesome to include this in v0.11.1, so going to approve now, and I'll happily iterate on this after the release. |
fix dagger#7057 Signed-off-by: Morlay <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
1c0aae3 to
3c375eb
Compare
| func (w *batchPrinter) render(out *termenv.Output, final bool) { | ||
| w.mu.Lock() | ||
| defer w.mu.Unlock() | ||
|
|
There was a problem hiding this comment.
it could ignore logs without spanName for now.
spanName := w.getSpanName(w.spanID)
if spanName == "" {
return
}
|
@jedevc spanName may empty. it could safe fixed by https://github.com/dagger/dagger/pull/7069/files#r1559461303 |
This is needed for printing out the final data! Signed-off-by: Justin Chadwell <[email protected]>
|
@morlay can you share an example of where span is empty? |
this first It logs before trace span emitted. |
|
Right, yeah, I meant, do you have a publicly-available example I can run to get this? I'm trying to understand why this can happen. |
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
It from github actions logs of my tool. It base dagger for container. To make logs in same view, I reuse idtui when dagger v0.11.0 released. So in local host execution, it will be fast. All tasks defined by cue lang. It could be run To see the issue should delete this condition |
|
Btw, in my case. It will make my final report hide some spans. 😂 Could we make it configable? |
This view is fundamentally different so it makes sense to me. Normally we're rendering into a viewport and dynamically redrawing parts of the screen, TUI style. This one just needs to print output directly without any funny business and let it go into the scrollback infinitely, skipping past all those moving parts and disregarding screen size and all that. In the end they're both implementing an interface, just perhaps a lower level one than you might have expected (OpenTelemetry span/log exporter). |
Already is - if you pass |
but with it, the final reporter is too noisy. 😂 |
vito
left a comment
There was a problem hiding this comment.
This is a great start, but I noticed it seems impossible to interrupt it at the moment with Ctrl+C. But, I think that was already broken in plain mode, so approving anyway; this is still a net positive. I think we can merge this as-is and I can try to fix that + maybe do some refactoring after. Thanks a bunch!
I'd prefer to avoid a bunch of flags, but feel free to make it a param or var instead of a const, if you're using this code directly. |


fix #7057