Skip to main content

Is it okay to run multiple APM tools in parallel?

Issue

I want to run Sentry alongside another vendor's application performance monitoring (APM) SDK at the same time, and I want to know whether that is safe.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • All SDKs

Resolution

No. Sentry recommends against running multiple APM tools in parallel. APM tools integrate deeply into your application, often using techniques that alter its flow, such as method swizzling, bytecode manipulation, or monkey patching. When two tools do this at once, they can conflict, and there is no deterministic way to predict which problems, if any, will appear.

Running multiple APM tools in parallel can cause:

  • Increased app start-up time.

  • Increased performance overhead at runtime.

  • More performance-related issues and crashes, such as ANRs on Android.

  • Duplicate or missing crash reports.

  • Missing or incorrect performance and other tracing data.

  • Additional crashes from conflicts or incompatibilities between the tools' instrumentation.

If you must run both, for example during a migration, run them together only in a pre-production environment first, test thoroughly, and watch for the issues above. Sentry cannot guarantee correct behavior when another APM tool instruments the same application.

Did this answer your question?