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


##########
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.

Review Comment:
   > I think we should skip unknown surface. Otherwise execution api and others 
will always be emitting metrics. (without a way to configure this not to).
   
   I don't have a strong preference here. Your earlier suggestion was to emit 
metrics for unmatched routes without the api_surface tag, while Pierre prefers 
skipping them. @jason810496, would you be okay with Pierre's proposed behavior?



-- 
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