Interface NetworkTracer


public interface NetworkTracer

Observes every ConnectionRequest the NetworkManager runs, so a tracer can time each one and put trace context on it.

Installed with NetworkManager.setNetworkTracer(NetworkTracer). The one implementation is com.codename1.telemetry.Telemetry's, and it is reached only from the bootstrap the build generates for a project that enables it -- so an app that does not trace carries this interface and nothing else.

This is a separate slot from NetworkGuard on purpose. The guard is a security decision: it seals on first install and can veto a request. A tracer observes and decorates, never refuses, and must not have to compete with the guard for the one slot the guard deliberately makes unreplaceable.

Every callback is guarded by the caller: an exception thrown from one is logged and the request carries on untraced.