Skip to content

report NoSuchMethodError when execute instrumentation:test #11641

Answered by laurit
huange7 asked this question in Q&A
Discussion options

You must be logged in to vote

When agent is build opentelemetry-api and instrumentation-api classes are renamed to avoid conflicts when application includes the same classes. Probably your own TracerHelper isn't renamed that way, but still has references to opentelemetry-api classes renamed. Now when you are using it from the test you'll end up using the class from the agent where the types of the arguments have been shaded.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@huange7
Comment options

@laurit
Comment options

@huange7
Comment options

@laurit
Comment options

@huange7
Comment options

Answer selected by huange7
Comment options

You must be logged in to vote
4 replies
@laurit
Comment options

@huange7
Comment options

@laurit
Comment options

@huange7
Comment options

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