Closed tom-james-watson closed 3 years ago
We'll add an option for this, but something to note is that short ids are often associated with instrumentation issues
@tom-james-watson we will be releasing this behavior this week. you will be able to pass minIdLength: number
in your options object when calling init.
@jooohhn could you please explain, what do you mean by "instrumentation issues"? I have a numeric user_id and I wonder should I add leading zeros to ids below 10000, or just set min_id_length
option
@jooohhn Could you please provide an answer to this question of why shorter ids would lead to "instrumentation issues"?
In the documentation for the HTTP API, https://developers.amplitude.com/docs/http-api-v2#properties-2 , a
min_id_length
is mentioned that allows overriding the check thatuser_id
must be at least 5 chars long:I have some user ids which are < 5 chars and am getting
400
responses when sending events. Is there any way to set thismin_id_length
if using the node SDK? It doesn't seem possible from looking at the codebase.