Correlation not working
See original GitHub issueHi, 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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Closing this as the fix has dropped in
2.0.0-rc5
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.