Skip to content

Configuration options

Passed to startProduction. Names are camelCase in JavaScript, Kotlin and Swift, snake_case on the wire.

Option (JS) Kotlin / Swift Default Notes
apiKey apiKey required At least 16 characters; sent as x-quameleon-key. Its environment is set on the server.
endpoint endpoint required https://…. Plain http only for 127.0.0.1, localhost, 10.0.2.2. Quameleon Cloud: https://quameleon.qualgent.ai
publicKey publicKeyPem none RSA public key (PEM, SPKI). When set, the spool and uploads are encrypted. A malformed key refuses to start.
sampleRate sampleRate 1 Share of user sessions captured, 0 to 1. Remote config overrides it.
uploadIntervalMs uploadIntervalMs 30000 Minimum 5000
deviceId (0.5) deviceId persisted UUID Your own install id, at most 128 characters. See Devices.
replay (0.5) Kotlin replaySampleRate none (replay off) { sampleRate }: opts the app in to replay (required since 0.5.x security fix) and is the local default for sampling. Replay also needs remote config replay.enabled.
otlp otlpEndpoint, otlpHeaders none { endpoint, headers }: in-app OTLP/HTTP JSON export of spans and error logs
crashlytics crashlytics false Sets Crashlytics keys quameleon_session_id and quameleon_user_session_id and forwards breadcrumbs (Crashlytics found reflectively, no dependency)
dir / directory quameleon_prod in app files / Application Support Spool directory (native only)

Passed to configure({...}) in the app, or in remote config under config. A category that is off is never captured and is left out of the hello capabilities. In production, the categories whose production default is off below can only be turned on by the app’s own configure(); remote config can only turn them off.

Key QA default Production default Notes
taps on on Taps with target id, label (privacy rules), role
gestures on on Long press, scroll, rage taps
lifecycle on on Foreground and background
network on on JS and native HTTP
errors on on JS and handled errors
crashes on on JVM, KSCrash, NDK (with qa-ndk)
hangs on on Main-thread hangs with sampled stacks
exits on on Previous-run exit reasons (ANR, OOM, watchdog, …)
launch on on Cold, warm and hot launch
vitals on on CPU, memory, frames, battery
device on on Thermal, low memory, power save, connectivity, orientation
spans on on Custom spans
action_latency on on Time to first frame and to settled after each step
leaks on on Android activity, fragment and WebView leaks
push on on Push received and opened
bug_report on on reportBug
native_screens off for React Native, on otherwise same Activity, Fragment, NavController, UIViewController screens
console on off console.* capture (React Native)
replay on (host-driven) off Production replay needs the start config replay opt-in, then remote config replay
screenshots on off Masked screenshot on error, hang and bug report
layout on off Layout snapshots for the wireframe view
hierarchy on never Live view hierarchy, host-driven
shake off off Shake to report a bug
push_content off off Include push title and body
network_huc off off Android HttpURLConnection capture
Key Default Notes
hang_threshold_ms 250 Minimum 250
vitals_interval_ms 5000 Minimum 1000
console_levels ["warn", "error"] Any of log, info, warn, error, debug
traceparent_hosts [] Hostnames (exact, or *.suffix) that get a W3C traceparent header
network_bodies [] URL globs whose headers and bodies are captured (sensitive headers always dropped, 16 KB limit)
network_ignore [] URL globs that are never captured
webview_origins [] Origins whose WebView pages may post qa-web messages, or *

Example:

Quameleon.configure({
console: true,
traceparent_hosts: ["api.example.com", "*.example.internal"],
network_ignore: ["https://*.analytics.example.com/*"],
});