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.

Request and dependencies reporting enchancements

See original GitHub issue

[EDITED]

I have a simple service that calls google

'use strict';

const appInsights = require("applicationinsights"); //0.22.0
appInsights.setup("removed");
appInsights.start();

const express = require('express'); //4.15.4
const request = require('request'); //2.81.0

// Constants
const PORT = 8089;
const HOST = '0.0.0.0';

// App
const app = express();
app.get('/', (req, res) => {
    
  console.log('Starting request: GET google'); // Print the response status code   
  request("http://google.com", function (error, response, body) {
      console.log('Response from google statusCode: %s', response && response.statusCode);
    });

  res.send('Hello world\n');
});


app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);

Here is a request telemetry that is reported when I make a request image

Here is dependencies that are tracked for this request: image

  1. [SOLVED] Dependencies are not correlated with request
  2. (minor) Two dependencies are tracked (because of redirected request). Is it expected? Is it avoidable? It should be consistent between SDKs (.NET reports just one)
  3. (minor) Request parent Id should be null - new id has just been generated for this operation. It should be consistent with .NET SDK.
  4. (minor) what is the point of saving “undefined | roleName:undefined” in the ‘source’?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
OsvaldoRosadocommented, Nov 8, 2017

Out of curiosity, can you workaround with something like getCorrelationContext.apply({_isCorrelating: true})

0reactions
prannaybcommented, Nov 8, 2017

Yup, for now I’m importing the manager and getting the context

` import { CorrelationContextManager } from “applicationinsights/out/AutoCollection/CorrelationContextManager”;

CorrelationContextManager.getCurrentContext(); `

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependencies in Project Management
Project dependencies, also called task dependencies, are relationships between tasks based on their sequence. Dependent tasks require one or ...
Read more >
Review external dependencies between projects
Review the external dependencies between projects in a portfolio to track projects that are dependant on each other more closely.
Read more >
Deploy applications - Configuration Manager
Automatically distribute content for dependencies: If any of the deployment types in the application have dependencies, then the site also sends ...
Read more >
Adding Dependencies - Planview Customer Success Center
Adding Dependencies · Configurations Overview · Associate specific Case sub-items (i.e. requests, issues, risks, and bugs) as related items in ...
Read more >
Aha! Roadmaps | Dependency report
Navigate to Roadmaps Dependency to access the dependency report. You will be prompted to select the record types you wish to visualize. Note:...
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