Skip to content

Log an error when activating a nested transaction #850 - #4572

Open
AzazelSensei wants to merge 1 commit into
elastic:mainfrom
AzazelSensei:log-nested-transaction-activation-850
Open

Log an error when activating a nested transaction #850#4572
AzazelSensei wants to merge 1 commit into
elastic:mainfrom
AzazelSensei:log-nested-transaction-activation-850

Conversation

@AzazelSensei

Copy link
Copy Markdown

What does this PR do?

Logs an error when a transaction is activated while another span or transaction is already active on the thread, and documents that nested transactions are invalid. Nested work should be a span.

Fixes #850

Checklist

  • This is an enhancement of existing features, or a new feature in existing plugins
    • I have updated CHANGELOG.next-release.md
    • I have added tests that prove my fix is effective or that my feature works
    • Added an API method or config option? Document in which version this will be introduced
    • I have made corresponding changes to the documentation
  • This is a bugfix
  • This is a new plugin
    • I have updated CHANGELOG.next-release.md
    • My code follows the style guidelines of this project
    • I have made corresponding changes to the documentation
    • I have added tests that prove my fix is effective or that my feature works
    • New and existing unit tests pass locally with my changes
    • I have updated supported-technologies.md
    • Added an API method or config option? Document in which version this will be introduced
    • Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.
  • This is something else

Activating a transaction while another span or transaction is already
active on the thread is invalid. Log an error and document that nested
work should be a span.

Fixes elastic#850
@AzazelSensei
AzazelSensei requested a review from a team as a code owner September 8, 2026 15:57
@cla-checker-service

Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
59a4cc3

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

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

Labels

agent-java community Issues and PRs created by the community triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve docs and add error log related to illegal activation of transaction

1 participant