build.gradle.kts 1.1 KB

123456789101112131415161718192021222324
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. // this instrumentation applies to the class 'org.eclipse.osgi.internal.loader.BundleLoader'
  5. // which is present in the following artifacts dating back to version 3.6 (2010):
  6. //
  7. // * 'org.eclipse.platform:org.eclipse.osgi'
  8. // * 'org.eclipse.tycho:org.eclipse.osgi'
  9. // * 'org.eclipse.osgi:org.eclipse.osgi'
  10. // TODO write a smoke test that does the following:
  11. //
  12. // docker run --mount 'type=bind,src=$AGENT_PATH,dst=/opentelemetry-javaagent.jar'
  13. // -e JAVA_TOOL_OPTIONS=-javaagent:/opentelemetry-javaagent.jar
  14. // wso2/wso2ei-business-process:6.5.0
  15. //
  16. // without this instrumentation, the following error will appear in the docker logs:
  17. // java.lang.ClassNotFoundException: org.wso2.carbon.humantask.ui.fileupload.HumanTaskUploadExecutor
  18. // cannot be found by org.wso2.carbon.ui_4.4.36
  19. //
  20. // ... or even better, write a standalone OSGi application that exhibits similar issue,
  21. // so we can run against arbitrary (e.g. latest) Eclipse OSGi release, especially since
  22. // this instrumentation patches a private method which could be renamed at any time