Skip to content

Commit

Permalink
Agent context storage wrapper should not override other wrappers (#7355)
Browse files Browse the repository at this point in the history
Resolves
#7344

Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
laurit and trask authored Dec 12, 2022
1 parent d971e26 commit d6ff481
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static void methodExit(
@Advice.Return(readOnly = false)
List<Function<? super ContextStorage, ? extends ContextStorage>> wrappers) {
wrappers = new ArrayList<>(wrappers);
wrappers.add(AgentContextStorage.wrap());
// AgentContextStorage wrapper doesn't delegate, so needs to be the innermost wrapper
wrappers.add(0, AgentContextStorage.wrap());
}
}
}

0 comments on commit d6ff481

Please sign in to comment.