# Capture OpenTelemetry Span Attributes
curl -X 'POST' \
"https://{environmentid}.live.dynatrace.com/api/v2/settings/objects?validateOnly=false" \
-H 'accept: application/json; charset=utf-8' \
-H "Authorization: Api-Token $DT_WRITE_SETTINGS_TOKEN" \
-H 'Content-Type: application/json; charset=utf-8' \
-d '[ { "schemaId": "builtin:attribute-allow-list", "schemaVersion": "0.0.10", "scope": "environment", "value": { "enabled": true, "key": "gen_ai.request.model" } }, { "schemaId": "builtin:attribute-allow-list", "schemaVersion": "0.0.10", "scope": "environment", "value": { "enabled": true, "key": "gen_ai.system" } }]'
I have this cURL command that I ultimately want to “wrap” into an app and list on the hub. In this way, my users can configure all span attributes in a one-click way.
How do I achieve this? Rework this as Terraform / Monaco and package that way? Python?
If you have any docs, that’d be much appreciated.