question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trackException not passing properties

See original GitHub issue

When calling:

AppInsights.trackException(error, 'notused', { 'action': 'mytestaction' } );

The error is tracked, but the properties do not get passed through. The ‘properties’ element in the track call is always empty.

All other tracking works, including passing custom properties.

Using version 1.0.18 in an Angular 6 application.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gmaughancommented, Aug 6, 2018

Found it. My telemetry initializer was resetting the properties. I had assumed that the two property bags, one from the initialiser and one from the trackException call, were merged. Now that I understand that they are the same bag I don’t reset the properties in the initialiser, I just add additional properties.

Sorry for leading down the wrong path. Thanks for the help debugging!

Glenn.

0reactions
github-actions[bot]commented, Aug 20, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

trackException not passing properties · Issue #623 - GitHub
The error is tracked, but the properties do not get passed through. The 'properties' element in the track call is always empty. All...
Read more >
Why is Application Insights TrackException not logging ...
Whenever I run this code only an event is logged but none of the exceptions are.
Read more >
Track custom operations with Application Insights .NET SDK
On a high level, the task is to create RequestTelemetry and set known properties. After the operation is finished, you track the telemetry....
Read more >
Implementing Monitoring in React Using AppInsights
Monitoring of SPA's is important, so let's look at how to do that in a React app using AppInsights.
Read more >
Adding Application Insights Logging to your code
There are three methods of interest: TrackEvent, TrackException and ... Application Insights provides a mechanism to pass properties along ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found