Skip to content

Commit

Permalink
add session tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisManiere committed Feb 14, 2024
1 parent 696938c commit c9175a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Imports:
shiny (>= 1.7.4.1),
shinycssloaders,
shinyjs,
shinylogs,
stats,
utils
Suggests:
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ importFrom(shinycssloaders,withSpinner)
importFrom(shinyjs,onclick)
importFrom(shinyjs,runjs)
importFrom(shinyjs,useShinyjs)
importFrom(shinylogs,store_null)
importFrom(shinylogs,track_usage)
importFrom(stats,setNames)
importFrom(utils,head)
importFrom(utils,tail)
13 changes: 6 additions & 7 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
#' DO NOT REMOVE.
#' @import shiny
#' @importFrom DBI dbDisconnect
#' @importFrom shinylogs track_usage store_null
#'
#' @noRd
app_server <- function(input, output, session) {

shinylogs::track_usage(storage_mode = shinylogs::store_null(),
what = "session")

# observe({
# tracks(input = input)
# })
# track session
session_tracks <- list(
session_id = session$token,
session_time = format(Sys.time(), "%Y-%m-%d %H:%M:%OS3%z")
)
message(list(session_tracks))

# set database connection
con <- db_con()
Expand Down

0 comments on commit c9175a4

Please sign in to comment.