Skip to content

Conversation

@lipskis
Copy link
Contributor

@lipskis lipskis commented Sep 24, 2025

The current binding specifies :void as return type for :appsignal_finish_transaction, which means that should_sample returns nil for apps using jRuby.

@lipskis lipskis requested a review from tombruijn September 24, 2025 14:54
@lipskis lipskis self-assigned this Sep 24, 2025
@lipskis lipskis added the bug Confirmed and unconfirmed bugs reported by us and customers. label Sep 24, 2025
Copy link
Member

@tombruijn tombruijn left a comment

Choose a reason for hiding this comment

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

Small suggestion for the changeset, otherwise 👍

The current binding specifies `:void` as return type for
`:appsignal_finish_transaction`, which means that `should_sample`
returns `nil` for apps using jRuby.
@lipskis lipskis force-pushed the fix-jruby-extension-return-type branch from 1d69406 to 1cd9ea2 Compare September 24, 2025 15:02
@lipskis lipskis merged commit 350b93d into main Sep 24, 2025
198 checks passed
tombruijn added a commit that referenced this pull request Sep 25, 2025
This was the problem in #1458, where the JRuby extension returned `void`
instead of a boolean. This ensure that can't happen again by testing the
extension function directly.

[skip changeset]
tombruijn added a commit that referenced this pull request Sep 25, 2025
This was the problem in #1458, where the JRuby extension returned `void`
instead of a boolean. This ensure that can't happen again by testing the
extension function directly.

[skip changeset]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Confirmed and unconfirmed bugs reported by us and customers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants