Skip to content

shiny[otel] should include opentelemetry-distro for auto-instrumentation support #2274

Description

@marcosnav

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

Metadata

Metadata

Assignees

Labels

Priority: LowLow-impact bug, docs polish, papercut, or unclear low-severity request.ai-triage:doneMarks an issue whose AI triage workflow is complete.documentationImprovements or additions to documentationneeds-triage

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions