public static final void setGlobalTags ( final Config config ) { if ( config == null ) { throw new IllegalArgumentException ( "Configuration cannot be null." ) ; } if ( config . getBoolean ( "tsd.core.stats_with_port" ) ) { global_tags = new HashMap < String , String > ( 1 ) ; global_tags . put ( "port" , config . getString ( "tsd.network.port" ) ) ; } }
Parses the configuration to determine if any extra tags should be included with every stat emitted .