update docs (#1978)
Co-authored-by: 蔡顺铠 <skai.cpp@gmail.com>
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
index a61f3e0..824d561 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
@@ -129,9 +129,15 @@
配置前缀:`elasticjob.tracing`
-| 属性名 | 可选值 | 是否必填 |
-| -----------------|:------------- |:-------- |
-| type | RDB | 否 |
+| 属性名 | 可选值 | 是否必填 |描述 |
+| -----------------|:-------- |:------- |:--------- |
+| type | RDB | 否 | |
+| includeJobNames | | 否 | 作业白名单 |
+| excludeJobNames | | 否 | 作业黑名单 |
+
+**includeJobNames 与 excludeJobNames 互斥,事件追踪配置只能有一种属性**
+
+**includeJobNames 与 excludeJobNames 都为空时,默认为所有作业加载事件追踪**
目前仅提供了 RDB 类型的事件追踪数据源实现。
Spring IoC 容器中存在 DataSource 类型的 bean 且配置数据源类型为 RDB 时会自动配置事件追踪,无须显式创建。
@@ -143,11 +149,13 @@
elasticjob:
tracing:
type: RDB
+ excludeJobNames: [ job-name-1, job-name-2 ]
```
**Properties**
```
elasticjob.tracing.type=RDB
+elasticjob.tracing.excludeJobNames=[ job-name ]
```
## 作业信息导出配置
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
index c030170..eb403a7 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
@@ -130,9 +130,15 @@
Prefix: `elasticjob.tracing`
-| Property name | Options | Required |
-| -----------------|:------------- |:-------- |
-| type | RDB | No |
+| Property name | Options | Required | Description |
+| -----------------|:---------|:-------- |:----------------- |
+| type | RDB | No | |
+| includeJobNames | | No | allow list of job |
+| excludeJobNames | | No | block list of job |
+
+**"includeJobNames" and "excludeJobNames" are mutually exclusive.**
+
+**Load all Job When "includeJobNames" and "excludeJobNames" are null.**
RDB is the only supported type at present.
If Spring IoC container contained a bean of DataSource and RDB was set in configuration, an instance of TracingConfiguration will be created automatically.
@@ -144,11 +150,13 @@
elasticjob:
tracing:
type: RDB
+ excludeJobNames: [ job-name-1, job-name-2 ]
```
**Properties**
```
elasticjob.tracing.type=RDB
+elasticjob.tracing.excludeJobNames=[ job-name ]
```
### Dump Job Info Configuration