smileby commented on code in PR #10702:
URL: https://github.com/apache/apisix/pull/10702#discussion_r1435840835


##########
docs/en/latest/terminology/plugin-metadata.md:
##########
@@ -0,0 +1,74 @@
+---
+title: Plugin Metadata
+keywords:
+  - API Gateway
+  - Apache APISIX
+  - Plugin Metadata
+description: Plugin Metadata in Apache APISIX.
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+## Description
+
+In this document, you will learn the basic concept of plugin metadata in 
APISIX and why you may need them.
+
+Explore additional resources at the end of the document for more information 
on related topics.
+
+## Overview
+
+In APISIX, a plugin metadata object is used to configure the common metadata 
field(s) of all plugin instances sharing the same plugin name. It is useful 
when a plugin is enabled across multiple objects and requires a universal 
update to their metadata fields.
+
+The following diagram illustrates the concept of plugin metadata using two 
instances of [syslog](https://apisix.apache.org/docs/apisix/plugins/syslog/) 
plugins on two different routes, as well as a plugin metadata object setting a 
[global](https://apisix.apache.org/docs/apisix/plugins/syslog/) `log_format` 
for the syslog plugin:
+
+![plugin_metadata](https://static.apiseven.com/uploads/2023/04/17/Z0OFRQhV_plugin%20metadata.svg)
+
+Without otherwise specified, the `log_format` on plugin metadata object should 
apply the same log format uniformly to both `syslog` plugins. However, since 
the `syslog` plugin on the `/orders` route has a different `log_format`, 
requests visiting this route will generate logs in the `log_format` specified 
by the plugin in route.
+
+Metadata properties set at the plugin level is more granular and has a higher 
priority over the "global" metadata object.
+
+Plugin metadata objects should only be used for plugins that have metadata 
fields. Plugin metadata objects should only be used for plugins that have 
metadata fields. For more details on which plugins have metadata fields, check 
out Plugin Details.

Review Comment:
   I've finished changing it, thank you



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