grafana / pyroscope-java

pyroscope java integration
Apache License 2.0
72 stars 31 forks source link

Feature flag to disable Pyroscope agent #68

Closed kazuhiro closed 8 months ago

kazuhiro commented 1 year ago

Some java agents (for instance New Relics: https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/disable-apm-agent/) have an option to temporarily disable them via configuration parameter for the purposes of testing or troubleshooting. It is much harder to achieve the same thing by modification of javagent paths, because quite often they are hardcoced by packaging tools (ie. in sbt). Something like:

-Dpyroscope.agent_enabled=false

would do the job. Wdyt?

zalintyre commented 8 months ago

I would like to have a look at this issue.