You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the out-of-the-box features Shiny provides for OTel traces and logs in a few observability tools, I noticed that the very first span Shiny creates is session_start, and with a few more custom instrumentation I noticed there is a gap of time with unknown events between the call to shinyApp(ui, server) and the first session_start event.
There might be valuable information on the events happening while shiny starts up the server.
For example, similar code to the following snippet shows a span of ~12secs that happens just before session_start shows up.
Hi @marcosnav, is this something you're noticing with a minimal Hello World Shiny app? Or is this something specific to a more complex app? If you are doing something like reading in lots of data at the top level of your server function, then that could explain the startup time here.
Activity
cpsievert commentedon May 11, 2026
Hi @marcosnav, is this something you're noticing with a minimal Hello World Shiny app? Or is this something specific to a more complex app? If you are doing something like reading in lots of data at the top level of your server function, then that could explain the startup time here.
marcosnav commentedon May 13, 2026
Hi @cpsievert, the shared example is a quite complex app. But the same can be seen in simple apps, like the one I'm sharing below.