$type = $session->getInstrumentationType( $object )

The getInstrumentationType() function returns the instrumentation type for a specified object.

 $type =
  $session->getInstrumentationType("Router::gw1");