Skip to content

How to extend/hand over trace to new thread #10001

Answered by MartinEmrich
MartinEmrich asked this question in Q&A
Discussion options

You must be logged in to vote

@trask thanks!

Apparently creating threads directly with Thread.start() seems to be "bad practice" in 2023, so I "worked around" the issue by refactoring the affected code to use ExecutorService/Callable/Future instead of creating the threads directly.

Now I get one big Trace with all steps as expected.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MartinEmrich
Comment options

Answer selected by MartinEmrich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants