-
Notifications
You must be signed in to change notification settings - Fork 229
Description
From discussion on today's apm-agent-nodejs call and from elastic/apm#420 we think the HTTP span "under" an Elasticsearch (ES) span from instrumentation of the "elasticsearch" and "@elastic/elasticsearch" modules should be excluded. The ES span is an "exit" span, and arguably the HTTP request it makes is an implementation detail. As well, eliding that span would make breakdown metrics much more useful/realistic. (FWIW, it would also side-step the current issue with the HTTP span being a sibling of, rather than a child of, the ES span for the instrumentation of the newer "@elastic/elasticsearch" client.)
From memory (though might be nice to confirm), the Python agent excludes the HTTP span (via leaf=True
in the code). I recall one other language agent optionally including the HTTP span, but I think it was off by default.