Questions tagged [applicationinsights-react-js]

7 questions
2
votes
0 answers

TypeError: Found non-callable @@iterator

I have a static class that has some static functions that wrap around some Application Insights functions in a react-typescript project. Upon the application loading one of the static functions is called which in turn calls another static function.…
1
vote
0 answers

How can I implement a Telemetry Initializer to overwrite PageView names with the current route?

I'm implementing a ReactJS app which is sending telemetry to App Insights. It's tracking PageViews ok except every PageView has the name "" because that's our page title and it does not change between routes (for "reasons"). This makes our…
1
vote
1 answer

Application Insights React plugin

I've been playing around with React and Azure App Insights. const appInsights = useAppInsightsContext(); For Events and Metrics only, there seems to be 2 ways of doing things. Why is this? And why is it only for these 2 things only ie for PageViews…
72GM
  • 2,926
  • 3
  • 27
  • 33
0
votes
0 answers

How to load / unload ApplicationInsights

I am using ApplicationInsight as a ReactPlugin in a react nextjs application. "@microsoft/applicationinsights-react-js": "^17.0.0", "@microsoft/applicationinsights-web": "^3.0.2", I want the user to be able to enabled / disable application insights…
Diego Frehner
  • 2,396
  • 1
  • 28
  • 35
0
votes
0 answers

Winston Logs to AppInsights

I am using winston for logging in my application. I have set the log level to info. I can see on my application console that only info or higher level logs are getting printed. But the same is not the case with application insights. I can see that…
0
votes
0 answers

How to wrap all telemetry logs with Correlation Context?

I have a nodeJS application that listens to Azure ServiceBus and would like to correlate all my logs under the same operationId for each message that it handles. Because this is not a HttpRequest nor am I running an Azure Function app, I believe I…
0
votes
1 answer

Application Insights Developer Mode For React Project

Is there a way to enable developer mode in Application Insights for a react project. Looking at these docs and this previously asked question I've setup my config to look like this if(process.env.NODE_ENV === 'development') { config = { …