Skip to content

First time writing instrumentation: Muzzle help #2862

Answered by trask
robododge asked this question in Q&A
Discussion options

You must be logged in to vote

hey @robododge!

Based on the exception, my first guess is that you have a reference from one of your Advice classes to your InstrumentationModule.

See https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/contributing/writing-instrumentation-module.md#advice-classes, in particular:

Advice classes are not really "classes", they're raw pieces of code that will be pasted directly into
the instrumented library class files. You should not treat them as ordinary, plain Java classes -
unfortunately many standard practices do not apply to them:

  • they MUST only contain static methods;
  • they MUST NOT contain any state (fields) whatsoever - static constants included! On…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@robododge
Comment options

@mateuszrzeszutek
Comment options

Answer selected by robododge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants