Coder Social home page Coder Social logo

StringValueTooLong message:"string value is too long. It has been truncated to 1024 characters." props:"{value:/callback#access_token=<token>...} about angular-application-insights HOT 6 OPEN

trilonio avatar trilonio commented on August 10, 2024
StringValueTooLong message:"string value is too long. It has been truncated to 1024 characters." props:"{value:/callback#access_token=...}

from angular-application-insights.

Comments (6)

MarkPieszak avatar MarkPieszak commented on August 10, 2024

It seems like it's related to the applicationinsights-js underlying package itself, can we see if there's an issue over there - maybe they're working on it - if not we should definitely raise it up to them, maybe it's an easy fix we can get a PR in to fix it over there 👍

from angular-application-insights.

StefH avatar StefH commented on August 10, 2024

I also have this warning.

Using :

  • "@angular/...": "~7.2.0"
  • "@markpieszak/ng-application-insights": "^7.0.1"

from angular-application-insights.

MarkPieszak avatar MarkPieszak commented on August 10, 2024

It seems this may be an existing issue within ApplicationInsights-JS itself, microsoft/ApplicationInsights-JS#286

Are there many tracking events firing off too quickly that's maybe causing this to happen?

from angular-application-insights.

StefH avatar StefH commented on August 10, 2024

This issue is now fixed? microsoft/ApplicationInsights-JS#751

However it's only in the 2.0.0 release, so you plan to upgrade this library to use the new version?

from angular-application-insights.

MarkPieszak avatar MarkPieszak commented on August 10, 2024

Ahh I didn't see they moved to 2.0!
Ok let me make the necessary changes - hopefully there aren't too many big ones and I can get an upgrade for the library here.

from angular-application-insights.

markwolff avatar markwolff commented on August 10, 2024

Just giving some context here from the JS SDK. App Insights limits the length of strings for telemetry. The warning only reflects the app insights world and the actual string is not truncated at all, only in the telemetry will it be truncated.

The referenced fix will not get rid of the warning. It only changed the fact that now the console warning shows the full, untruncated string. Disabling verboseLogging (or the equivalent for this SDK) should suppress the warning after the first time, but there doesn't seem to be a way to prevent it altogether.

For the 2.0.0 SDK, you can use the new consoleLoggingLevel config option and set it to 0 (this is the default) to disable all SDK console warnings from our end.

from angular-application-insights.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.