View source: R/telemetry_ingest.R
| bid_telemetry_presets | R Documentation |
Returns predefined threshold configurations for telemetry analysis with different
sensitivity levels. Use these presets with bid_ingest_telemetry() or
bid_telemetry() to easily adjust how aggressively the analysis identifies
UX friction points.
OpenTelemetry Compatibility: These presets work with both shiny.telemetry event data and Shiny 1.12+ OpenTelemetry span data. When using OTEL data, spans are automatically converted to events for analysis.
bid_telemetry_presets(preset = c("moderate", "strict", "relaxed"))
preset |
Character string specifying the sensitivity level:
|
Named list of threshold parameters suitable for passing to
bid_ingest_telemetry() or bid_telemetry() thresholds parameter.
# Get strict sensitivity thresholds
strict_thresholds <- bid_telemetry_presets("strict")
# Use with telemetry analysis (works with both shiny.telemetry and OTEL)
## Not run:
# Works with shiny.telemetry
issues <- bid_telemetry(
"telemetry.sqlite",
thresholds = bid_telemetry_presets("strict")
)
# Works with Shiny OpenTelemetry (1.12+)
issues <- bid_telemetry(
"otel_spans.json",
thresholds = bid_telemetry_presets("strict")
)
## End(Not run)
# Compare different presets
moderate <- bid_telemetry_presets("moderate")
relaxed <- bid_telemetry_presets("relaxed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.