Skip to content

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Aug 29, 2025

Lets assume we are trying to exclude a task from context propagation with IgnoredTypesBuilder.ignoreTaskClass. When code calls AbstractExecutorService.submit(Runnable) we'll correctly see that the actual task class is excluded and skip propagation. Now that method wraps the task into a FutureTask and calls execute(Runnable) which we also instrument. Since the task has been wrapped we'll allow context propagation. Call depth check should ensure that we skip instrumentation in nested calls.

@laurit laurit requested a review from a team as a code owner August 29, 2025 11:19
@laurit laurit marked this pull request as draft August 29, 2025 11:27
@laurit laurit marked this pull request as ready for review September 1, 2025 13:09
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.

1 participant