Feuerlabs/exometer — pull request #25 by uwiger (2014-02-25 14:26:59+00:00)
Title: Support dynamic specification of reporter type map info

When adding a subscription dynamically, there hasn't been support
for updating the type maps in the reporters. Two alternatives have
been added to enable dynamic management of type mapping.

1. Add {report_type, Type} in Extra when adding the subscription.
This information will override whatever information is in the
type map.

2. Wildcard type maps
It's now possible to use a wildcard pattern in a type_map entry.
E.g. {[my_app, counters, '_'|'_'], counter}.
The function exometer_util:report_type(Key, Extra, TypeMap)
searches the type map from the top down, until it finds a
pattern that matches the key.