-
-
Notifications
You must be signed in to change notification settings - Fork 60
feat: enable open telemetry to capture the current module #1687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -107,6 +107,10 @@ srv_teal_module <- function(id, | |||||||
| reporter = teal.reporter::Reporter$new(), | ||||||||
| data_load_status = reactive("ok")) { | ||||||||
| moduleServer(id, function(input, output, session) { | ||||||||
| observeEvent(input$active_module_id, { | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Where does
|
||||||||
| otel::log_info(sprintf("The app current module is %s", input$active_module_id)) | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. otel is in suggested, code using it should be conditional of otel being loaded:
Suggested change
We might want to report the id and the label as the label might be more human readable while the id is more for machines. |
||||||||
| }) | ||||||||
|
|
||||||||
| .srv_teal_module( | ||||||||
| id = "nav", | ||||||||
| data = data, | ||||||||
|
|
||||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otel yes as it is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otelsdkin particular 😅 it's not being used in the PRThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not used by teal code by the dependency is necessary for Open Telemetry to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otelsdk is a dependency of otel and it is only needed to collect telemtry so I am not sure why it is needed here