Type
API Reference
Location
https://shiny.posit.co/py/docs/opentelemetry.html#basic-configuration
Issue
Other
Suggested Changes
The standard way to apply opentelemetry instrumentation to a python app is to run opentelemetry-instrument app so in the case of Shiny it would be opentelemetry-instrument shiny run app.py (which works perfectly fine)
But the Shiny documentation describes a manual process that would conflict with auto instrumentation.
shiny[otel] only brings the opentelemetry-sdk dependency and not opentelemetry-distro which is instead needed for the autoinstrumentation to work as it has knowledge of how the instrumentation needs to be configured and initialized for each python library.
If shiny[otel] did bring in opentelemetry-distro[otlp] that should do (and would also have the benefit of making possible for the user to switch to HTTP or gRPC output easily)
Motivation (Optional)
Cross product integration with OTel auto instrumentation.
Shiny Version (if applicable)
No response
Type
API Reference
Location
https://shiny.posit.co/py/docs/opentelemetry.html#basic-configuration
Issue
Other
Suggested Changes
The standard way to apply opentelemetry instrumentation to a python app is to run
opentelemetry-instrument appso in the case of Shiny it would beopentelemetry-instrument shiny run app.py(which works perfectly fine)But the Shiny documentation describes a manual process that would conflict with auto instrumentation.
shiny[otel]only brings theopentelemetry-sdkdependency and notopentelemetry-distrowhich is instead needed for the autoinstrumentation to work as it has knowledge of how the instrumentation needs to be configured and initialized for each python library.If
shiny[otel]did bring inopentelemetry-distro[otlp]that should do (and would also have the benefit of making possible for the user to switch to HTTP or gRPC output easily)Motivation (Optional)
Cross product integration with OTel auto instrumentation.
Shiny Version (if applicable)
No response