Skip to content
Discussion options

You must be logged in to vote

When using AgentBuilder.Transformer.ForAdvice(), Byte Buddy will try to load the class file directly to render a description of the advice, without loading it. By using Advice.to(ThreadGenThreadNameInterceptor.class), the description is rendered using Java reflection.

On this note, .include(Thread.class.getClassLoader()) seems to be incorrect. Here you should include your agent's class loader that contains the advice classes. This is likely the real issue of your initial solution.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arouel
Comment options

@arouel
Comment options

@raphw
Comment options

raphw Jun 6, 2025
Maintainer

Answer selected by arouel
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