This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 3806246 update docs (#1978)
3806246 is described below
commit 38062462b4a44d0e22c17483d62f190e7b16277c
Author: skai <[email protected]>
AuthorDate: Sun Sep 12 22:04:05 2021 +0800
update docs (#1978)
Co-authored-by: 蔡顺铠 <[email protected]>
---
.../configuration/spring-boot-starter.cn.md | 14 +++++++++++---
.../configuration/spring-boot-starter.en.md | 14 +++++++++++---
2 files changed, 22 insertions(+), 6 deletions(-)
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.jobs.manualScriptJob.props.script.command.line=echo Manual SCRIPT Job
配置前缀:`elasticjob.tracing`
-| 属性名 | 可选值 | 是否必填 |
-| -----------------|:------------- |:-------- |
-| type | RDB | 否 |
+| 属性名 | 可选值 | 是否必填 |描述 |
+| -----------------|:-------- |:------- |:--------- |
+| type | RDB | 否 | |
+| includeJobNames | | 否 | 作业白名单 |
+| excludeJobNames | | 否 | 作业黑名单 |
+
+**includeJobNames 与 excludeJobNames 互斥,事件追踪配置只能有一种属性**
+
+**includeJobNames 与 excludeJobNames 都为空时,默认为所有作业加载事件追踪**
目前仅提供了 RDB 类型的事件追踪数据源实现。
Spring IoC 容器中存在 DataSource 类型的 bean 且配置数据源类型为 RDB 时会自动配置事件追踪,无须显式创建。
@@ -143,11 +149,13 @@ Spring IoC 容器中存在 DataSource 类型的 bean 且配置数据源类型为
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 @@
elasticjob.jobs.manualScriptJob.props.script.command.line=echo Manual SCRIPT Job
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 @@ Reference:
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