Optional
reportEmit a Datadog action when network conditions change.
Default: true (sampled at changeSampleRate
).
Optional
change% sample rate for change events (0–100).
Default: 25. Only applies if reportChanges
is true.
Optional
constrainedTreat the following as "constrained" for isConstrainedNetwork()
.
Default: { effectiveTypes: ["slow-2g", "2g"], maxDownlinkMbps: 0.8, minRttMs: 300, respectSaveData: true }
Optional
debounceDebounce window in ms for high-churn changes on some devices. Default: 150 ms.
Optional
setWhether to update Datadog global context on every change. Default: true. Context keys: network_effectiveType, network_downlinkMbps, network_rttMs, network_saveData, network_online, network_type
Configuration for network tracking behavior.