Skip to content

Filter/limit instrumentation by package or class name? #32

Open
@bikerunner

Description

@bikerunner

Is there an option to limit instrumentation by package/class name (incl. wildcard)? Or to exclude packages which cause problems? Our program does not start if we use Google Guice and Eureka Discovery Client together.

1) Error injecting constructor, java.lang.RuntimeException: Failed to initialize DiscoveryClient!
  at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:299)
  at com.netflix.discovery.DiscoveryClient.class(DiscoveryClient.java:111)
  while locating com.netflix.discovery.DiscoveryClient

The only difference is the instrumenter JAR added as agent option to java:

-javaagent:/testdir/java-allocation-instrumenter-3.2.0.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions