diff --git a/404.html b/404.html index 018ed991f..365c64d7b 100644 --- a/404.html +++ b/404.html @@ -33,7 +33,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index 533d35a08..6f59e5560 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/LICENSE-text.html b/LICENSE-text.html index f5de1b62b..e96201b12 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/README-npm.html b/README-npm.html index be3d5e4a1..e6405fcde 100644 --- a/README-npm.html +++ b/README-npm.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/TODO-promises.html b/TODO-promises.html index d0db95cbb..5f6b58a80 100644 --- a/TODO-promises.html +++ b/TODO-promises.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/authors.html b/authors.html index 88788fc4d..b8202e1d7 100644 --- a/authors.html +++ b/authors.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 @@ -188,20 +188,20 @@

Citation

- Source: DESCRIPTION + Source: DESCRIPTION

Chang W, Cheng J, Allaire J, Sievert C, Schloerke B, Aden-Buie G, Xie Y, Allen J, McPherson J, Dipert A, Borges B (2025). shiny: Web Application Framework for R. -R package version 1.12.1, https://shiny.posit.co/. +R package version 1.12.0.9000, https://shiny.posit.co/.

@Manual{,
   title = {shiny: Web Application Framework for R},
   author = {Winston Chang and Joe Cheng and JJ Allaire and Carson Sievert and Barret Schloerke and Garrick Aden-Buie and Yihui Xie and Jeff Allen and Jonathan McPherson and Alan Dipert and Barbara Borges},
   year = {2025},
-  note = {R package version 1.12.1},
+  note = {R package version 1.12.0.9000},
   url = {https://shiny.posit.co/},
 }
diff --git a/index.html b/index.html index f9e1f5ed8..de9e2d631 100644 --- a/index.html +++ b/index.html @@ -34,7 +34,7 @@ shiny - 1.12.1 + 1.12.0.9000 diff --git a/news/index.html b/news/index.html index 0208f2021..42a91682e 100644 --- a/news/index.html +++ b/news/index.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 @@ -44,17 +44,15 @@
- -
-

Bug fixes and minor improvements

-
  • OpenTelemetry code attributes now include both the preferred attribute names (code.file.path, code.line.number, code.column.number) and the deprecated names (code.filepath, code.lineno, code.column) to follow OpenTelemetry semantic conventions while maintaining backward compatibility. The deprecated names will be removed in a future release after Logfire supports the preferred names. (#4325)

  • -
  • Timer tests are now skipped on CRAN. (#4327)

  • + +
    • Added withOtelCollect() and localOtelCollect() functions to temporarily control OpenTelemetry collection levels during reactive expression creation. These functions allow you to enable or disable telemetry collection for specific modules or sections of code where reactive expressions are being created. (#4333)
    • +
    • OpenTelemetry code attributes now include both preferred (code.file.path, code.line.number, code.column.number) and deprecated (code.filepath, code.lineno, code.column) attribute names to follow OpenTelemetry semantic conventions while maintaining backward compatibility. The deprecated names will be removed in a future release after Logfire supports the preferred names. (#4325)
    • +
    • Timer tests are now skipped on CRAN. (#4327)
-
diff --git a/pkgdown.yml b/pkgdown.yml index 6a6ecb463..da93cbe7f 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 3.1.11 pkgdown: 2.2.0 pkgdown_sha: ~ articles: {} -last_built: 2025-12-03T21:40Z +last_built: 2025-12-08T19:32Z diff --git a/reference/ExtendedTask.html b/reference/ExtendedTask.html index 59f1012c9..fec7d9f8a 100644 --- a/reference/ExtendedTask.html +++ b/reference/ExtendedTask.html @@ -34,7 +34,7 @@ begin until the previous invocation has completed."> shiny - 1.12.1 + 1.12.0.9000
@@ -61,7 +61,7 @@ begin until the previous invocation has completed."> diff --git a/reference/MockShinySession.html b/reference/MockShinySession.html index 69154714e..5113dcbc1 100644 --- a/reference/MockShinySession.html +++ b/reference/MockShinySession.html @@ -28,7 +28,7 @@ of testServer()."> shiny - 1.12.1 + 1.12.0.9000
@@ -55,7 +55,7 @@ of testServer().">
diff --git a/reference/NS.html b/reference/NS.html index 705fd4cc8..e1a6103b9 100644 --- a/reference/NS.html +++ b/reference/NS.html @@ -19,7 +19,7 @@ modules. See https://shiny.rstudio.com/articles/modules.html."> shiny - 1.12.1 + 1.12.0.9000
@@ -46,7 +46,7 @@ modules. See https://shiny.rstudio.com/articles/modules.html."> diff --git a/reference/Progress.html b/reference/Progress.html index be4707019..727e2b4b2 100644 --- a/reference/Progress.html +++ b/reference/Progress.html @@ -18,7 +18,7 @@ Reporting progress (object-oriented API)"> shiny - 1.12.1 + 1.12.0.9000
@@ -45,7 +45,7 @@ Reporting progress (object-oriented API)"> diff --git a/reference/absolutePanel.html b/reference/absolutePanel.html index f228df174..efd530012 100644 --- a/reference/absolutePanel.html +++ b/reference/absolutePanel.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000 @@ -44,7 +44,7 @@
diff --git a/reference/actionButton.html b/reference/actionButton.html index 137c7596a..4b311c169 100644 --- a/reference/actionButton.html +++ b/reference/actionButton.html @@ -18,7 +18,7 @@ each time it is pressed."> + + +
+
+ + + +
+
+ + +
+

withOtelCollect() temporarily sets the OpenTelemetry collection level for +the duration of evaluating expr. localOtelCollect() sets the collection +level for the remainder of the current function scope.

+

These functions are useful for temporarily controlling telemetry collection +during reactive expression creation. Only the following levels are allowed:

  • "none" - No telemetry data collected

  • +
  • "reactivity" - Collect reactive execution spans (includes session and +reactive update events)

  • +
  • "all" - All available telemetry (currently equivalent to "reactivity")

  • +

Note that "session" and "reactive_update" levels are not permitted as +these are runtime-specific levels that should only be set permanently via +options(shiny.otel.collect = ...) or the SHINY_OTEL_COLLECT environment +variable, not temporarily during reactive expression creation.

+
+ +
+
withOtelCollect(collect, expr)
+
+localOtelCollect(collect, envir = parent.frame())
+
+ +
+

Arguments

+ + +
collect
+

Character string specifying the OpenTelemetry collection level. +Must be one of "none", "reactivity", or "all".

+ + +
expr
+

Expression to evaluate with the specified collection level +(for withOtelCollect()).

+ + +
envir
+

Environment where the collection level should be set +(for localOtelCollect()). Defaults to the parent frame.

+ +
+
+

Value

+ +
  • withOtelCollect() returns the value of expr.

  • +
  • localOtelCollect() is called for its side effect and returns the previous +collect value invisibly.

  • +
+
+

Intended Usage

+ + + +

These functions are designed to perform sweeping changes to telemetry +collection, such as enabling or disabling OpenTelemetry for an entire module +or section of code where reactive expressions are being created:

+

# Enable telemetry for an entire module
+withOtelCollect("all", {
+  my_result <- my_module("my_id")
+})
+
+# Disable telemetry for expensive development-only reactives
+withOtelCollect("none", {
+  debug_reactive <- reactive({ expensive_debug_computation() })
+})

+
+ +
+

See also

+

See the shiny.otel.collect option within shinyOptions. Setting +this value will globally control OpenTelemetry collection levels.

+
+ +
+

Examples

+
if (FALSE) { # \dontrun{
+# Temporarily disable telemetry collection
+withOtelCollect("none", {
+  # Code here won't generate telemetry
+  reactive({ input$x + 1 })
+})
+
+# Collect reactivity telemetry but not other events
+withOtelCollect("reactivity", {
+  # Reactive execution will be traced
+  observe({ print(input$x) })
+})
+
+# Use local variant in a function
+my_function <- function() {
+  localOtelCollect("none")
+  # Rest of function executes without telemetry
+  reactive({ input$y * 2 })
+}
+} # }
+
+
+
+
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/reference/withProgress.html b/reference/withProgress.html index 67ef8fcde..1af6dacb0 100644 --- a/reference/withProgress.html +++ b/reference/withProgress.html @@ -17,7 +17,7 @@ shiny - 1.12.1 + 1.12.0.9000
@@ -44,7 +44,7 @@
diff --git a/sitemap.xml b/sitemap.xml index 831ebe6b2..aebe39a94 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -175,6 +175,7 @@ /reference/viewer.html /reference/wellPanel.html /reference/withMathJax.html +/reference/withOtelCollect.html /reference/withProgress.html