Enable a setting to disable all or certain types of diagnostic warnings
They can be disabled using telemetry initializer, however initializing setting would be easier and less error prone.
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?
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?
@SandyVeliz what release are you on? Per this issue, this has been fixed.
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

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.
Yes, I checked with my local version and use the same version, I will make an issue in they repository. Thank you so much!
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! 🤔
Closing for now as underlying issue was solved. Reopen if there is still an ask for logging filters
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.