https://github.com/elastic/apm-server/pull/1825
https://github.com/elastic/kibana/issues/20664
https://github.com/elastic/kibana/issues/71025
一默怨、關(guān)于 error.exception 是 array 的考證
image.png
根據(jù)官方開發(fā)人員的描述奇颠,為了支持 chained exception砸泛,目前是將 exception按照數(shù)組的格式存放的触菜,從如上答復(fù)的時間來看罚渐,在2019年1月23日之前锅棕,這個數(shù)組只有一個對象疙剑。
或者先煎,是不是可以理解為椭岩,如果沒有使用 chained exception 的話茅逮,error.exception 數(shù)組只有 1個對象璃赡。
沒有考證到 chained exception 多對象的更多信息。
二献雅、怎么訪問 error.exception 中的 message 和 type
部分內(nèi)容提示可以用 error.exception[0].attributes 的方式訪問碉考。
在 watcher 中,我使用 {{ctx.payload._source.error.exception.0.message}}
的方式成功訪問挺身。
因為 {{ctx.payload._source.error.exception}}
顯示為:
{0={message=Data truncation: Incorrect datetime value: 'null' for column 'TBgnTime' at row 1, type=com.mysql.jdbc.MysqlDataTruncation}}