This issue is based on the review comment here: #19 (comment)
The idea here is that we'd like to make it impossible for the client to send messages with bogus formatting but the current API allows users to send metrics manually by specifying the metric type as a string. This opens the door for users to pass a string that is not valid and would force us to validate it and set an error message if invalid. With a small (but breaking) API change we can side step the whole issue by:
- making the
send method private
- add support for all the valid metric types (
set and histogram are missing)
To follow with semver we will need to increment the major revision though.
@vthiery In general do you think this is a worthwhile thing to do?
This issue is based on the review comment here: #19 (comment)
The idea here is that we'd like to make it impossible for the client to send messages with bogus formatting but the current API allows users to send metrics manually by specifying the metric type as a string. This opens the door for users to pass a string that is not valid and would force us to validate it and set an error message if invalid. With a small (but breaking) API change we can side step the whole issue by:
sendmethodprivatesetandhistogramare missing)To follow with semver we will need to increment the major revision though.
@vthiery In general do you think this is a worthwhile thing to do?