class ElasticAPM::ContextBuilder
def should_capture_body?(for_type)
def should_capture_body?(for_type) option = config.capture_body return true if option == 'all' return true if option == 'transactions' && for_type == :transaction return true if option == 'errors' && for_type == :error false end