elastic / elastic/apm-agent-nodejs

span is not sent to APM server

Open
#911 10 comments 0 reactions 0 assignees View on GitHub
agent-nodejs
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

I see SPAN data with NodeJs agent 1.14.5 but 2.6.0 is failing to capture same
JS code stays same only APM agent version is changing

debug output from 1.14.5 version:
```
init span { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
intercepted call to http.request { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
request details: { protocol: 'https:',
host: 'iapi.xyz.com',
id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
start span { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1',
name: 'GET iapi.xyz.com/xyz/xyz/../up',
type: 'ext.http.http' }
intercepted http.ClientRequest response event { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
setting transaction result { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1',
result: 'HTTP 2xx' }
setting default transaction name: GET /up { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
ended span { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1',
name: 'GET iapi.xyz.com/xyz/xyz/../up',
type: 'ext.http.http',
truncated: true }
adding transaction to queue { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1' }
setting timer to flush queue: 4860ms
ended transaction { id: 'c5231c49-ad8d-4c08-8c54-e35704096dc1',
type: 'request',
result: 'HTTP 2xx',
name: 'GET /up' }
flushing queue
sending transactions payload
```

debug from 2.6.0 version:
```
intercepted request event call to http.Server.prototype.emit
start trace { trans: '54768b21709fe11d',
parent: undefined,
trace: 'bc3d74b2436610ae1574d7604a0d4c68',
name: null,
type: null }
start span { span: '26737ff7e8c227eb',
parent: '54768b21709fe11d',
trace: 'bc3d74b2436610ae1574d7604a0d4c68',
name: null,
type: 'ext.http.http' }
intercepted call to http.request { id: '54768b21709fe11d' }
request details: { protocol: 'https:',
host: 'iapi.xyz.com',
id: '54768b21709fe11d' }
intercepted http.ClientRequest response event { id: '54768b21709fe11d' }
setting transaction result { trans: '54768b21709fe11d',
parent: undefined,
trace: 'bc3d74b2436610ae1574d7604a0d4c68',
result: 'HTTP 2xx' }
setting default transaction name: GET /up { trans: '54768b21709fe11d',
parent: undefined,
trace: 'bc3d74b2436610ae1574d7604a0d4c68' }
sending transaction { trans: '54768b21709fe11d',
trace: 'bc3d74b2436610ae1574d7604a0d4c68' }
ended transaction { trans: '54768b21709fe11d',
parent: undefined,
trace: 'bc3d74b2436610ae1574d7604a0d4c68',
type: 'request',
result: 'HTTP 2xx',
name: 'GET /up' }
```

I'm happy to share more details just tell me what would help here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.