anchor.diff:  %%%===================================================================
   %%% Internal functions
   %%%===================================================================
  +
  +publish(Key, Value, TS, Path) ->
  +    Metric = <<Path/binary, Key/binary>>,
  +    gen_server:cast(statser_router, {line, Metric, Value, TS}).
  +
   
   increment_metrics(Key, Amount, Map) when is_number(Amount) ->
       Update = fun(Value) when is_number(Value) -> Value + Amount;
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  handle_cast(prepare, State) ->
      % TODO: determine interval from configuration
      Interval = 60 * 1000,
  
      lager:info("preparing instrumentation service timer with interval of ~w ms", [Interval]),
  
      {ok, Timer} = timer:send_interval(Interval, update_metrics),
      {noreply, State#state{timer=Timer}};
  
  handle_cast({increment, Key, Amount}, State) ->
      Map = increment_metrics(Key, Amount, State#state.metrics),
  
negative.code:          terminate/2,
           code_change/3]).
  
  -record(state, {metrics, path, timer}).
  
  %%%===================================================================
  %%% API
  