#Shell: errors in otel spans

1 messages · Page 1 of 1 (latest)

smoky nexus
#

Hey @molten pulsar, I have an issue where the shell makes calls to ModuleSource internally, for example to check if an input is a module or not. However, it's showing on progress output. Should I wrap these types of calls on an "internal" kind of span so it doesn't show?

molten pulsar
#

yep!

smoky nexus
#

Could actually be shown in the cloud (collapsed), just doesn't make sense to show on the TUI.

#

Which attributes should I use? Or is there an example of something quite similar in intent?

molten pulsar
#

just internal should do - dagger.io/ui.internal=true, there might be a telemetry.Internal() helper, or there's at least a const for the attr name, telemetry.UIInternalAttr

smoky nexus
#

Can it be surfaced on a condition? For example I just want to hide the moduleSource call when it's the "does not exist" error, but show the span for other errors.

molten pulsar