Skip to content

I want to register my custom class or a 3rd-party class(or lib) with the class loader. #11886

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

You must be logged in to vote

asking and answering oneself:

build.gradle:


plugins {

    id "io.opentelemetry.instrumentation.muzzle-generation" version "2.6.0-alpha"
    id "io.opentelemetry.instrumentation.muzzle-check" version "2.6.0-alpha"
}

dependency.gradle:

dependencies {
    runtimeOnly 'io.opentelemetry.javaagent:opentelemetry-muzzle:2.6.0-alpha'
}

The JAR task runs, and the isHelperClass function is called. I confirmed that the isHelperClass function is called during the compile and build stages

Replies: 1 comment 3 replies

Comment options

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

@laurit
Comment options

@JangCool
Comment options

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