ApplicationInsights-JS icon indicating copy to clipboard operation
ApplicationInsights-JS copied to clipboard

Enable a setting to disable all or certain types of diagnostic warnings

Open AlexBulankou opened this issue 10 years ago • 9 comments

They can be disabled using telemetry initializer, however initializing setting would be easier and less error prone.

AlexBulankou avatar Apr 24 '16 13:04 AlexBulankou

I got here from this issue as I am having issues with UrlTooLong being thrown to the console because of a 3rd party tool (mixpanel.com) I tried using a telemetry initializer but it seems to me that it doesn't kick in soon enough to hide the warning. The DataSanitizer kicks in first (calling sanitizeUrl()) and there seems to be no way to override it. It will always log the warning to the console. I can fiddle with the remote dependency data all I want and even filter the events out, but I'm already too late, the damage is already done by the sanitizeUrl() function.

Oh! I just noticed the tag enhancement... Does that mean this feature is still in the backlog?

BlackMael avatar Jul 10 '17 00:07 BlackMael

Hi! same trouble here, i m doing an app with Angular and B2C, the trouble is that the id_token and the accestoken are informed in the console as warning.

AI: StringValueTooLong message:"string value is too long. It has been truncated to 1024 characters." props:"{value:/#state=CientId&client_info=accestoken.

there is a way to disable this specific warning?

sandyeveliz avatar Jul 02 '18 19:07 sandyeveliz

@SandyVeliz what release are you on? Per this issue, this has been fixed.

barustum avatar Jul 05 '18 19:07 barustum

Hi @barustum thx for answer, i have instaled the "version": "1.0.18" of this repo, but i m using a third party lib and maybe they dont update the repo with this fix. this lib is for Angular 6+ https://github.com/MarkPieszak/angular-application-insights

image

sandyeveliz avatar Jul 05 '18 19:07 sandyeveliz

I peeked at the package.json for the angular-application-insights library. It seems like they are using the version that doesn't have the fix.

barustum avatar Jul 05 '18 19:07 barustum

Yes, I checked with my local version and use the same version, I will make an issue in they repository. Thank you so much!

sandyeveliz avatar Jul 05 '18 20:07 sandyeveliz

Strangely we have the library setup to use ^1.0.15 which should get the latest (1.0.18 anyway), but I cleaned out the package-lock files, and updated everything to 1.0.18 and republished to npm, so hopefully that does the trick. But that's odd, I would of thought it would of been working either way! 🤔

MarkPieszak avatar Jul 07 '18 13:07 MarkPieszak

Closing for now as underlying issue was solved. Reopen if there is still an ask for logging filters

markwolff avatar Nov 28 '18 18:11 markwolff

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Aug 19 '21 00:08 github-actions[bot]