Kibana version: 7.2.0
Elasticsearch version: 7.2.0
APM Server version: 7.2.0
APM Agent language and version: JavaScript agent version 4.5.1
Browser version: Safari 13.0.3
Original install method (e.g. download page, yum, deb, from source, etc.) and version: From NPM
Fresh install or upgraded from other version? Upgraded
Is there anything special in your setup? We're using the hosted version of Elastic, but other than that, nothing special.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Steps to reproduce:
- Initialise the APM agent
- Start a span using the agent's
startSpan()
method - Add a label to the span:
span.addLabels({'my_label': 'my value'})
- Cause an error to be raised during the span so it is captured by the error handler installed by the APM agent
Expected behaviour: Since the error occurs during a span, it should be associated with that span and inherit the label my_label
from that span.
Actual behaviour: The error is not associated with that span when viewed in Kibana, and does not have any labels.