1. A system, comprising: a traffic stack; a proxy manager coupled to the traffic stack; a socket manager coupled to the traffic stack; a traffic classification and enforcement engine coupled to the traffic stack; wherein, in operation: the proxy manager tags a network activity traffic flow at a first point in the flow, wherein the first point is associated with an API call to the proxy manager for a thread; the proxy manager registers the thread at the traffic stack; the socket manager tags the network activity traffic flow at a second point in the flow, wherein the second point is associated with a socket call to the socket manager for the thread; the socket manager registers the socket at the traffic stack; the traffic classification and enforcement engine uses the registration of the thread and the registration of the socket to determine that the network activity traffic flow is associated with an initiator of the network activity, wherein the initiator of the network activity is not the proxy manager; the traffic classification and enforcement engine enforces service policies associated with the initiator of the network activity for the network activity traffic flow.