newrelic / opensource-website

Source code for New Relic's Opensource site.
https://opensource.newrelic.com
Apache License 2.0
155 stars 89 forks source link

START SEGMENT IN NODE JS NOT WORKING. #919

Closed Sparsh-Kumar closed 2 years ago

Sparsh-Kumar commented 2 years ago

I am making use of newrelic.startSegment() in Node JS, but I am not seeing any details regarding this transaction in my dashboard. The way I am using it is as follows.

class TestClass {
    constructor() {}
    runTestSecond() {
        nr.startSegment('runTestSecond', true, () => {
             console.log('In Run test second method ....');
        })
    }
}

const testClass = new TestClass();
testClass.runTestSecond();

I don't know why it is happening, am I doing something wrong here?

Doc information (don't delete this section)

jpvajda commented 2 years ago

@Sparsh-Kumar 👋 thanks for reporting this, but this repo is for the opensource website, so youll want to report this problem to your New Relic account manager, or file a support ticket, or look in discuss.newrelic.com for community support if you don't have official new relic support.