## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)

## -----------------------------------------------------------------------------
# # 1. Explicitly at run time
# aurora_run("meu_app", otel = TRUE)
# 
# # 2. In the optional manifest — _aurora.yml
# # otel: true
# 
# # 3. Via environment (handy for containers; the generated api.R reads it)
# Sys.setenv(AURORA_OTEL = "true")
# aurora_run("meu_app")

## -----------------------------------------------------------------------------
# #* @get /api/report/<id>
# #* @serializer json
# function(id, server) {
#   otel::start_local_active_span("build report")   # closes at end of scope
#   server$log("message", paste("building report", id))   # joins the request span
#   build_report(id)
# }

