Skip to main content
PandaProbe supports fully disabling the SDK, making it safe to leave instrumentation in production code that you only want active in certain environments.

Disable via environment variable

When PANDAPROBE_ENABLED=false:
  • The SDK does not initialize a client
  • Python’s pandaprobe.get_client() returns None; TypeScript’s getClient() returns null
  • flush() and shutdown() silently do nothing
  • Python and TypeScript decorators pass through transparently
  • Wrappers return the original client unchanged
  • Integrations do not submit traces
This makes it safe to leave PandaProbe instrumentation in all environments. The SDK adds zero overhead when disabled.

Disable via init()

Python

Environment-based configuration

Common pattern using different configurations per environment:
Python
TypeScript

Conditional tracing without disabling

If you want the SDK enabled but want to conditionally trace specific operations:
Python
TypeScript