I've been working on #1319757538471837796
I've been tempted to just flip to using a normal Go CLI instead, because the noisy output makes this tricky to debug and control the output noise. I'm sharing as maybe I'm just missing some features.
- The actual CLI/api calls development was the least complicated, it was more working around file/output confusion with dagger that slowed me down.
- For example PlainText from a secret is outputting a line on every paginated call instead of being at a debug level.
- My fmt.Printlns only show up if I increase the verbosity level and at that point it's a ton to dig through.
- I didn't see any simple way to use span/otel like you have done in your code and have it enter a dedicated line that I could put at information/higher level so I could have easy structured log output. The only way I think I could get what I want is maybe using a OTEL viewer locally?
span.SetAttributes(attribute.KeyValue{
Key: attribute.Key("url"),
Value: attribute.StringValue(url),
})
That's verbose but if it had shown up results locally on a line I could deal with that, but I couldn't find.
- I'd be fine with not outputting spinners and other nice CLI stuff if I could better handle structured lines that would show up at
-vlevel for me to see indented on the output.
The lack of output control is hard for me since I like to be make very clean log output with Mage, or use structured logging with zerolog and use the console writer with nice formatting tweaks to support clean local reading.
It's also hard if I want to wrap up some of this and share with folks as they'll get a "wall of noise" for any progress I want to output to summarize from what I can see.
Do you have any projects that give examples of controlling output for better debugging and working through issues?

wiring the env var in is awkward, I think... but you'd add