Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom dimensions are truncated to the wrong limit #444

Closed
OsvaldoRosado opened this issue Oct 24, 2018 · 8 comments · Fixed by #447
Closed

Custom dimensions are truncated to the wrong limit #444

OsvaldoRosado opened this issue Oct 24, 2018 · 8 comments · Fixed by #447

Comments

@OsvaldoRosado
Copy link
Member

OsvaldoRosado commented Oct 24, 2018

See report at: https://stackoverflow.com/questions/52973839/nodejs-application-insigths-string-property-suddenly-limited-to-1024

https://github.com/Microsoft/ApplicationInsights-node.js/blob/develop/Library/Util.ts#L13 sets the limit for custom dimension properties values to length 1024. However, the limit specified in the schema is 8192 (see https://github.com/Microsoft/ApplicationInsights-Home/blob/master/EndpointSpecs/Schemas/Bond/EventData.bond#L19)

@sean-mcmanus
Copy link

We hit this bug too after upgrading from 1.0.5 to 1.0.6 (microsoft/vscode-cpptools#2587).

@ramya-rao-a
Copy link

@OsvaldoRosado Can you post an update here when a new version is released?

@OsvaldoRosado
Copy link
Member Author

@ramya-rao-a Will do

@ramya-rao-a
Copy link

ramya-rao-a commented Nov 7, 2018

@OsvaldoRosado What is the current plan for the next release?

Due to this issue, the C++ extension had to revert back to the older version which has the spawning powershell problem

So either we need to have a new version of the applicationInsights or the C++ extension will have to go back to an even older version of applicationInsights.

@OsvaldoRosado
Copy link
Member Author

@ramya-rao-a My current intention is to wait for more changes before releasing a new version. There's some other recently found bugs that should get fixes in as well.

Because the variable that controls the limit here is a public static variable, this is easily worked around with code like the following:

const appInsightsUtil = require("applicationinsights/out/Library/Util")
appInsightsUtil.MAX_PROPERTY_LENGTH = 8192;

@ramya-rao-a
Copy link

Thanks @OsvaldoRosado

@sean-mcmanus also mentioned that he needs more time to release a new version due to major changes in the master branch. Therefore, the current plan is to point the C++ extension users to an older version of the extension.

Thanks for all the help on this.

@OsvaldoRosado
Copy link
Member Author

Version 1.0.7 should be out now with the fix for this bug

@ramya-rao-a
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants