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.

Correlation not working

See original GitHub issue

Hi, I am using 2.0.0-rc4

I am sending Ajax-requests to my web service. However, I am not able to bring them together. I guess it is because the “request-id” header always consists of just “f1+QH”.

I debugged it down to this line in AjaxMonitor.prototype.createFetchRecord

if (this._context && this._context.telemetryTrace && this._context.telemetryTrace.traceID) { // this format corresponds with activity logic on server-side and is required for the correct correlation id = "|" + this._context.telemetryTrace.traceID + "." + Util_Util.newId(); } else { id = Util_Util.newId(); }

_context is always empty, so it always just generates a plain ID and then is not able to connect it to the operation.

this seems to be due this line in AjaxMonitor.prototype.initialize:

if (extensions.length > 0 && extensions) { var propExt = extensions[PropertiesPluginIdentifier]; if (propExt) { this._context = propExt.context; // we could move IPropertiesPlugin to common as well } }

Altough there is an Key for an PropertiesPlugin in extensions, it is named “PropertiesPlugin”, not “AppInsightsPropertiesPlugin”, what is the value of the variable (altough the Object referenced has an “Identifier” with that value").

However, due to that “_context” is null and therefore the requestId cannot be generated to correlate the request with the server-side metrics.

Pls have a look into that

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
markwolffcommented, May 14, 2019

Closing this as the fix has dropped in 2.0.0-rc5

0reactions
github-actions[bot]commented, Aug 18, 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

4 Reasons why Correlation does NOT imply Causation
The first reason why correlation may not equal causation is that there is some third variable (Z) that affects both X and Y...
Read more >
Common pitfalls in statistical analysis: The use of correlation ...
Correlation analysis assumes that all the observations are independent of each other. Thus, it should not be used if the data include more...
Read more >
Correlations are hard to interpret
Since a correlation is an association among variables, a correlation cannot exist (is not defined) with just one variable; "undefined" is not the...
Read more >
Statistical Language - Correlation and Causation
Correlation is a statistical measure (expressed as a number) that describes the size and direction of a relationship between two or more variables....
Read more >
CORREL function
Positive correlation means that if the values in one array are increasing, the values in the other array increase as well. A correlation...
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