class ElasticAPM::ContextBuilder
def get_body(req)
def get_body(req) case req.media_type when 'application/x-www-form-urlencoded', 'multipart/form-data' req.POST.dup else body = req.body.read req.body.rewind body.byteslice(0, MAX_BODY_LENGTH).force_encoding('utf-8') end end