Hi, currently ElasticAPM.report and ElasticAPM.report_message return either nil or true
ElasticAPM.report(exception)
=> true
Proposal
I would like to propose a change to make it return an instance ofElasticAPM::Error instead. Or at least error.id.
Motivation
The reason for this, we'd like to be able to communicate an error id back to a client as part of server error payload. This would allow us to easily identify errors in ELK by id.
Required code change
The code change to achieve this is very small.
We just need to modify ElasticAPM.report and ElasticAPM.report_message methods
so they return error, instead of enqueue error.
What do you think?
If you give me a green light I can prepare a pull request for this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.