Commit 35a3dc6 1 parent 3c14532 commit 35a3dc6 Copy full SHA for 35a3dc6
File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,26 @@ All classes from the newly added bootstrap module will be loaded by the bootstra
402
402
globally available within the JVM. ** IMPORTANT: Note that you _ cannot_ use any third-party libraries
403
403
here, including the instrumented library - you can only use JDK and OpenTelemetry API classes.**
404
404
405
+ ### Common Modules
406
+
407
+ When creating a common module shared among different instrumentations, the naming convention should
408
+ include a version suffix that matches the major/minor version of the instrumented library specified
409
+ in the common module's ` build.gradle.kts ` .
410
+
411
+ For example, if the common module's Gradle file contains the following dependency:
412
+
413
+ ``` kotlin
414
+ dependencies {
415
+ compileOnly(" org.yarpc.client:rest:5.0.0" )
416
+ }
417
+ ```
418
+
419
+ Then the module should be named using the suffix ` yarp-common-5.0 ` .
420
+
421
+ If the common module does not have a direct dependency on the instrumented library, no version
422
+ suffix is required. Examples of such cases include modules named ` lettuce-common ` and
423
+ ` netty-common ` .
424
+
405
425
## Writing Java agent unit tests
406
426
407
427
As mentioned before, tests in the ` javaagent ` module cannot access the javaagent instrumentation
You can’t perform that action at this time.
0 commit comments