Skip to content

Conversation

@gadenbuie
Copy link
Collaborator

Fixes #148

@gadenbuie gadenbuie requested a review from schloerke October 10, 2025 19:40
@gadenbuie gadenbuie changed the title Label all observers and reactives for otel chore(pkg-r): Label all observers and reactives for otel Oct 10, 2025
Comment on lines +278 to +279
last_turn = shiny::reactive(last_turn(), label = "mod_last_turn"),
last_input = shiny::reactive(last_input(), label = "mod_last_input"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read_only?

Suggested change
last_turn = shiny::reactive(last_turn(), label = "mod_last_turn"),
last_input = shiny::reactive(last_input(), label = "mod_last_input"),
last_turn = shiny::reactive(last_turn(), label = "last_turn_read_only"),
last_input = shiny::reactive(last_input(), label = "last_input_read_only"),

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I was thinking of it like "this is the return value of the module" vs the internal reactive value used in the module. I almost called these return_last_value. But read only works too. I'll ponder

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to stick with mod_. My take is that if I encountered these labels in an otel trace, having never seen them before, I'd immediately wonder why there's a _read_only version of the two other reactives. Whereas mod_ hopefully signals that it's the value returned by the module.

@gadenbuie gadenbuie merged commit 3a1824c into main Oct 14, 2025
10 checks passed
@gadenbuie gadenbuie deleted the fix/148-label-observers-reactives branch October 14, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Label all observers and reactives for otel

2 participants