While environment variables are the recommended way to configure PandaProbe, you can also configure the SDK programmatically usingDocumentation Index
Fetch the complete documentation index at: https://docs.pandaprobe.com/llms.txt
Use this file to discover all available pages before exploring further.
pandaprobe.init().
Basic programmatic configuration
Precedence rules
Parameters passed topandaprobe.init() always take precedence over environment variables:
- Explicit keyword arguments to
pandaprobe.init() PANDAPROBE_*environment variables- SDK defaults
SdkConfig fields
The resolved configuration is stored as a frozenSdkConfig dataclass. You can inspect it via the client:
| Field | Type | Default |
|---|---|---|
api_key | str | None | None |
project_name | str | None | None |
endpoint | str | "https://api.pandaprobe.com" |
environment | str | None | None |
release | str | None | None |
enabled | bool | True |
batch_size | int | 10 |
flush_interval | float | 5.0 |
max_queue_size | int | 1000 |
debug | bool | False |
Re-initialization
Callingpandaprobe.init() when a client already exists shuts down the previous client and creates a new one:
Auto-initialization
If you don’t callpandaprobe.init(), the SDK auto-initializes from environment variables on first use:
get_client() return None and convenience functions like flush() and shutdown() silently no-op.
