Max Characters Length for JSON in transaction labels

Hello, I am running a Flask application (v3.0.2) with Elastic APM integrated via the elastic-apm package (v6.23.0). In APM, I am trying to add a custom label for my transactions containing the outgoing HTTP response body:

@app.after_request
def apm_label_response_data(response):
    response_data = response.get_json(silent=True)
    limited_data = json.dumps(response_data)[:10000]
    elasticapm.label(response_body=limited_data)
        
    return response

The problem is that my limit for characters doesn’t seem to take effect, as the JSON is still truncated to only 1024 characters. I believe the reason is explained here. Is there any way to adjust this limit for my label?