feat: mark Elasticsearch spans as exit spans; HTTP child spans are now elided#2557
feat: mark Elasticsearch spans as exit spans; HTTP child spans are now elided#2557
Conversation
… elided Elasticsearch (ES) client spans are no marked as exit spans, so their HTTP child spans are now no longer generated per spec: https://github.com/elastic/apm/blob/main/specs/agents/tracing-spans.md#exit-spans Some HTTP context has been added to ES spans: - span.context.http.status_code - span.context.http.response.encoded_body_size Closes: #2000 Closes: #2484
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
|
run module tests for elasticsearch,@elastic/elasticsearch,@elastic/elasticsearch-canary |
… which isn't in node 8
|
run module tests for elasticsearch,@elastic/elasticsearch,@elastic/elasticsearch-canary |
|
Note that tests actually all passed here: https://apm-ci.elastic.co/blue/organizations/jenkins/apm-agent-nodejs%2Fapm-agent-nodejs-mbp/detail/PR-2557/3/pipeline/1066 The error is: on a TAV test step, which doesn't expect to provide TAP output. I don't know why that part of the Jenkinsfile reporting failed. |
|
run module tests for elasticsearch,@elastic/elasticsearch,@elastic/elasticsearch-canary |
Elasticsearch (ES) client spans are no marked as exit spans, so their HTTP
child spans are now no longer generated per spec:
https://github.com/elastic/apm/blob/main/specs/agents/tracing-spans.md#exit-spans
Some HTTP context has been added to ES spans:
Closes: #2000
Closes: #2484
Limitation
I am currently inclined to not deal with this for
asyncHooks=false. It is a minor degradation on generated ES spans (nospan.context.http) and we never had a guarantee of thecurrentSpanbeing correct in the diagnostic events of the ES client before anyway. @astorm, please let me know if you disagree.Checklist