You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/19 11:44:00 UTC

[shardingsphere-elasticjob] branch master updated: Revise tracing document (#1602)

This is an automated email from the ASF dual-hosted git repository.

zhangliang 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 d35f6d9  Revise tracing document (#1602)
d35f6d9 is described below

commit d35f6d901d5cba8e84eb9b7b64d69e060e7fb463
Author: Liang Zhang <te...@163.com>
AuthorDate: Mon Oct 19 19:43:49 2020 +0800

    Revise tracing document (#1602)
---
 .../user-manual/elasticjob-lite/usage/event-trace/_index.en.md    | 8 --------
 .../elasticjob-lite/usage/{event-trace => tracing}/_index.cn.md   | 0
 .../user-manual/elasticjob-lite/usage/tracing/_index.en.md        | 8 ++++++++
 .../elasticjob-lite/usage/{event-trace => tracing}/java-api.cn.md | 3 ++-
 .../elasticjob-lite/usage/{event-trace => tracing}/java-api.en.md | 3 ++-
 .../usage/{event-trace => tracing}/spring-boot-starter.cn.md      | 0
 .../usage/{event-trace => tracing}/spring-boot-starter.en.md      | 0
 .../usage/{event-trace => tracing}/spring-namespace.cn.md         | 0
 .../usage/{event-trace => tracing}/spring-namespace.en.md         | 0
 .../usage/{event-trace => tracing}/table-structure.cn.md          | 0
 .../usage/{event-trace => tracing}/table-structure.en.md          | 0
 11 files changed, 12 insertions(+), 10 deletions(-)

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 4c33722..0000000
--- 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 0000000..72469b7
--- /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 5867e46..ca18a38 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 cf730a4..f46a71d 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