class ElasticAPM::Transport::Serializers::ErrorSerializer
def build_exception(exception)
def build_exception(exception) { message: exception.message, type: keyword_field(exception.type), module: keyword_field(exception.module), code: keyword_field(exception.code), attributes: exception.attributes, stacktrace: exception.stacktrace.to_a, handled: exception.handled, cause: exception.cause && [build_exception(exception.cause)] } end