Comparison

core/statsmanager.lua @ 7522:ebf2e77ac8a7

statsmanager, util.statsd: Add built-in statsd provider
author Matthew Wild <mwild1@gmail.com>
date Wed, 27 Jul 2016 14:06:10 +0100
parent 7521:1c8b63fe6472
child 7524:b6f32bb3b584
comparison
equal deleted inserted replaced
7521:1c8b63fe6472 7522:ebf2e77ac8a7
13 local stats_provider_config = config.get("*", "statistics_provider"); 13 local stats_provider_config = config.get("*", "statistics_provider");
14 local stats_provider = stats_provider_config or "internal"; 14 local stats_provider = stats_provider_config or "internal";
15 15
16 local builtin_providers = { 16 local builtin_providers = {
17 internal = "util.statistics"; 17 internal = "util.statistics";
18 statsd = "util.statsd";
18 }; 19 };
19 20
20 if stats_provider:match("^library:") then 21 if stats_provider:match("^library:") then
21 stats_provider = stats_provider:match(":(.+)$"); 22 stats_provider = stats_provider:match(":(.+)$");
22 else 23 else