| commit d35f6d901d5cba8e84eb9b7b64d69e060e7fb463 |
| Author: Liang Zhang <terrymanu@163.com> |
| Date: Mon Oct 19 19:43:49 2020 +0800 |
| |
| Revise tracing document (#1602) |
| |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/_index.en.md b/docs/content/user-manual/elasticjob-lite/usage/event-trace/_index.en.md |
| deleted file mode 100644 |
| index 4c337227e..000000000 |
| --- a/docs/content/user-manual/elasticjob-lite/usage/event-trace/_index.en.md |
| +++ /dev/null |
| @@ -1,8 +0,0 @@ |
| -+++ |
| -title = "Event Trace" |
| -weight = 3 |
| -chapter = true |
| -+++ |
| - |
| -ElasticJob provides an event tracking function, which can handle important events in the scheduling process through event subscription for query, statistics and monitor. |
| -Now, the event subscription based on relation database is provided to record events, and developers can also extend it through SPI. |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/_index.cn.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/_index.cn.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/_index.cn.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/_index.cn.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/tracing/_index.en.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/_index.en.md |
| new file mode 100644 |
| index 000000000..72469b711 |
| --- /dev/null |
| +++ b/docs/content/user-manual/elasticjob-lite/usage/tracing/_index.en.md |
| @@ -0,0 +1,8 @@ |
| ++++ |
| +title = "Tracing" |
| +weight = 3 |
| +chapter = true |
| ++++ |
| + |
| +ElasticJob provides a tracing function, which can handle important events in the scheduling process through event subscription for query, statistics and monitor. |
| +Now, the event subscription based on relation database is provided to record events, and developers can also extend it through SPI. |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.cn.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.cn.md |
| similarity index 81% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.cn.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.cn.md |
| index 5867e4636..ca18a3873 100644 |
| --- a/docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.cn.md |
| +++ b/docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.cn.md |
| @@ -16,5 +16,6 @@ ElasticJob-Lite 在配置中提供了 TracingConfiguration,目前支持数据 |
| CoordinatorRegistryCenter regCenter = ...; |
| // 初始化作业配置 |
| JobConfiguration jobConfig = ...; |
| - new ScheduleJobBootstrap(regCenter, jobConfig, tracingConfig).schedule(); |
| + jobConfig.getExtraConfigurations().add(tracingConfig); |
| + new ScheduleJobBootstrap(regCenter, jobConfig).schedule(); |
| ``` |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.en.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.en.md |
| similarity index 82% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.en.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.en.md |
| index cf730a462..f46a71df7 100644 |
| --- a/docs/content/user-manual/elasticjob-lite/usage/event-trace/java-api.en.md |
| +++ b/docs/content/user-manual/elasticjob-lite/usage/tracing/java-api.en.md |
| @@ -16,5 +16,6 @@ Developers can also extend it through SPI. |
| CoordinatorRegistryCenter regCenter = ...; |
| // init job configuration |
| JobConfiguration jobConfig = ...; |
| - new ScheduleJobBootstrap(regCenter, jobConfig, tracingConfig).schedule(); |
| +jobConfig.getExtraConfigurations().add(tracingConfig); |
| + new ScheduleJobBootstrap(regCenter, jobConfig).schedule(); |
| ``` |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter.cn.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter.cn.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter.cn.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter.cn.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter.en.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter.en.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter.en.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter.en.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-namespace.cn.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/spring-namespace.cn.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-namespace.cn.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/spring-namespace.cn.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-namespace.en.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/spring-namespace.en.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/spring-namespace.en.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/spring-namespace.en.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/table-structure.cn.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/table-structure.cn.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/table-structure.cn.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/table-structure.cn.md |
| diff --git a/docs/content/user-manual/elasticjob-lite/usage/event-trace/table-structure.en.md b/docs/content/user-manual/elasticjob-lite/usage/tracing/table-structure.en.md |
| similarity index 100% |
| rename from docs/content/user-manual/elasticjob-lite/usage/event-trace/table-structure.en.md |
| rename to docs/content/user-manual/elasticjob-lite/usage/tracing/table-structure.en.md |