Skip to content
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

Ensure that Observation is stopped and Scope is closed in doReceiveAndExecute() #31798

Closed
wants to merge 1 commit into from

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Dec 9, 2023

This PR changes to try to ensure that Observation is stopped and Scope is closed in AbstractPollingMessageListenerContainer.doReceiveAndExecute() as it seems to be possible for the finally clause not to be invoked if an exception is thrown out of the try-finally clause.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 9, 2023
@bclozel bclozel self-assigned this Dec 9, 2023
@bclozel bclozel added type: enhancement A general enhancement theme: observability An issue related to observability and tracing and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 5, 2024
@bclozel bclozel added this to the 6.1.3 milestone Jan 5, 2024
@bclozel bclozel closed this in 0ad561d Jan 5, 2024
@bclozel
Copy link
Member

bclozel commented Jan 5, 2024

Thanks @izeye !

@izeye izeye deleted the observation branch January 5, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: observability An issue related to observability and tracing type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants