jason810496 commented on code in PR #64523:
URL: https://github.com/apache/airflow/pull/64523#discussion_r3487972694


##########
airflow-core/src/airflow/config_templates/config.yml:
##########
@@ -1152,6 +1152,18 @@ metrics:
       type: string
       example: ~
       default: "True"
+    api_path_prefix_to_surface:
+      description: |
+        JSON mapping of HTTP path prefixes to API surface names used for the 
``api_surface`` tag
+        on API metrics. Requests that do not match a configured prefix emit 
metrics without the
+        ``api_surface`` tag.
+
+        Add prefixes to identify additional routes, such as the Execution API 
or routes registered
+        by plugins. When prefixes overlap, the most specific prefix is used.
+      version_added: 3.3.0
+      type: string
+      example: '{"/api/v2": "public", "/ui": "ui", "/execution": "execution", 
"/my-plugin": "plugin"}'

Review Comment:
   I have no strong opinion for keeping as dict.
   As the Dev List 
https://lists.apache.org/thread/2o3g4yvr0pzr64fzjwf9xd78obd4dhnt thread 
discussed, let's switch to what Ash suggested as most of the community members 
lean toward simple config.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to