Skip to content

exclude the HTTP span under an Elasticsearch span #2000

@trentm

Description

@trentm

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.

Metadata

Metadata

Assignees

Labels

agent-nodejsMake available for APM Agents project planning.kibana

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions