Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDependencies Disabling #1294
Dependencies Disabling #1294
Comments
|
@martupeppe What dependencies are excessive? You may greatly benefit from enabling sampling. |
|
Hi, Thanks |
|
@martupeppe Do you think sampling may work for you? |
|
No I don't think so. The customer would like to have all the requests. Another solution would be avoid to send requests from a specific operationname so that the related dependencies would be filtered out. Any suggestion? Giuseppe |
|
@MS-jgol any suggestion? |
|
@MS-jgol no ideas? Should I switch to java sdk to disable dependencies? |
|
@MS-jgol looking at the code I think it should be fine amending te BeforeAgentInstaller.java to read the configuration e set a Global Property. In order to avoid to send dependency telemetry, the ByteCodeUtilImpl.java file should be changed and specifically the method trackDependency should evaluate the Global property previously set and log only if the configuration has been enabled. The same mechanism is used for Sampling just to mange the sampling percentage. Do you think it is feasible? |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Hi,
I just configured my Java application on-prem installing the Java Codeless Agent applicationinsights-agent-3.0.0-PREVIEW.5.jar.
I figured out my application is logging milions of dependencies and I would like to disable them, but I think there is no way to disable only dependencies because as far as I understood the dependencies are auto-tracked.
I would like to have a dedicated configuration to avoid to send dependencies to Application Insights.
Thanks,
Giuseppe