-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: connected deferred exit parent span with original entry span #1346
Conversation
pre-approving |
@@ -20,7 +20,7 @@ const express = require('express'); | |||
const fetch = require('node-fetch-v2'); | |||
const NATS = require('nats'); | |||
|
|||
const log = require('@instana/core/test/test_util/log').getLogger('NATS Subscriber'); | |||
const log = require('@instana/core/test/test_util/log').getLogger('NATS Subscriber: '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log output was broken.
: expect(span.p).to.equal(natsEntry.s), | ||
span => expect(span.k).to.equal(constants.EXIT) | ||
version === 'latest' | ||
? expect(span.t).to.equal(httpEntrySpan.t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are now able to connect the correct trace.
@@ -689,7 +724,8 @@ function verifyHttpExit({ | |||
withClientError, | |||
withServerError, | |||
withTimeout, | |||
serverControls | |||
serverControls, | |||
params = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added another optional check.
If the test passes params, we test params.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it!
Found while working on #1297
Problem: the deferred http request was not traced correctly. It was not connected to the entry http server span.