feat: Add bundled otel Agent Skill - #2356
Merged
Merged
Conversation
Adds shiny/.agents/skills/otel/ teaching coding agents to observe Shiny apps with OpenTelemetry: zero-code auto-instrumentation via opentelemetry-instrument (the standard path established in #2349), SHINY_OTEL_COLLECT collection levels, per-object otel.suppress / otel.collect control, custom spans, and common mistakes. Also switches install commands in bundled skills to uv.
schloerke
marked this pull request as ready for review
July 9, 2026 19:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2274 / #2349.
Summary
Adds an
otelAgent Skill undershiny/.agents/skills/— bundled, user-facing docs that teach coding agents how to observe Shiny apps with OpenTelemetry, matching the post-#2349 story where zero-code auto-instrumentation is the standard path:uv pip install "shiny[otel]"thenopentelemetry-instrument shiny run app.py, console exporter for development, OTLP backends via standardOTEL_*env vars, and the span hierarchy to expect.SHINY_OTEL_COLLECTplusshiny.otel.get_level().otel.suppress/otel.collectas decorators and context managers, including initialization-time capture semantics and precedence over the global level.shiny[otel]should includeopentelemetry-distrofor auto-instrumentation support #2274 gotcha: in-codetrace.set_tracer_provider()is silently ignored underopentelemetry-instrument.The skill's description also triggers when an agent is about to configure providers in app code, steering it to the wrapper instead. While here, install commands in bundled skills now use
uv(testingskill updated to match).Validated with
pytest tests/pytest/test_packaging.py(frontmatter contract + wheel package-data globs), the agentskills spec validator, andshiny skills list|get|path otel.Verification