Starts production mode. True when capturing; false when QA mode is active, the config is invalid, the session was not sampled or the kill switch is on. See config options.
isActive()
boolean
True in QA mode or production mode
isProduction()
boolean
True in production mode
configure(partial)
void
Switches capture categories and tuning; see configuration
A handled error: error {handled: true, fatal: false}
<QuameleonErrorBoundary name fallback onError>
Reports render errors with boundary and component_stack, then renders fallback (a node, or (error, reset) => node)
reportBug(description, props?)
bug_report signal plus a masked screenshot
lastExit()
The previous run’s exit ({reason, timestamp, …}) or null
Unhandled JS errors and promise rejections are captured automatically. A fatal JS error is flushed and persisted
before the native crash it causes, which is then linked with js_error_id.
Returns a Span: setAttribute, addEvent, checkpoint, setStatus, recordException, updateName, isRecording, end(status?). Ids are W3C hex.
span(name, fn, opts?)
Runs fn in a span (status error if it throws); fetches started inside join its trace
recordSpan(name, start, end, opts?)
A span that already happened (epoch ms)
withActiveSpan(span, fn)
Runs fn with span active
QuameleonTracerProvider
An OpenTelemetry TracerProvider over startSpan
SpanOptions: parent, attributes, startTime, root. With traceparent_hosts configured, requests to those
hosts carry a traceparent header for the active span.
webViewProps(opts) is the non-hook form. Pages on allowed origins post taps, errors and network through qa-web;
their DOM is spliced into the hierarchy and their inputs are masked.