Reputation: 1000
I used for > 1.5 years to use trackEvent in AI nodejs package with a property with various payload text.
until now, I was able to send large payload (sent many time >53k length string)
suddenly, starting on 18th of october 2018, all string longer than 1024 chars are truncated.
I looked into github repo and or new release and I can't understand if expected or not ...
AI "version": "1.0.6"
I suspect that version 1.0.6 has this new limitation ?
Upvotes: 0
Views: 94
Reputation: 451
Yes, this is new in 1.0.6 and appears to be a bug.
Context:
The Application Insights SDK for Node had always intended to truncate custom dimensions to 1024 chars, but this logic was broken in some cases. As part of the changes in 1.0.6 to support nested objects in custom dimensions, the truncation logic was fixed.
We perform this truncation because your telemetry has a chance of being dropped entirely by the Application Insights backend if custom dimensions are longer than the limit specified in the schema. However, the limit in the schema is 8192 rather than 1024.
I've opened a bug to track fixing this: https://github.com/Microsoft/ApplicationInsights-node.js/issues/444
Upvotes: 1