[GitHub] wu-sheng edited a comment on issue #2080: org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY

2018-12-21 Thread GitBox
wu-sheng edited a comment on issue #2080: 
org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO
 -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY" not found; SQL 
statement: select * from service_inventory where is_address=?  and 
mapping_last_update_time>? LIMIT 50  [42102-196]
URL: 
https://github.com/apache/incubator-skywalking/issues/2080#issuecomment-449552231
 
 
   I am not sure. Do you find any error during startup? I have tested sql 
storage several times. Also, beta release should be in next week.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wu-sheng commented on issue #2080: org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY" not f

2018-12-21 Thread GitBox
wu-sheng commented on issue #2080: 
org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO
 -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY" not found; SQL 
statement: select * from service_inventory where is_address=?  and 
mapping_last_update_time>? LIMIT 50  [42102-196]
URL: 
https://github.com/apache/incubator-skywalking/issues/2080#issuecomment-449552231
 
 
   I am not. Do you find any error during startup? I have tested sql storage 
several times. Also, beta release should be in next week.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rainmakerho opened a new issue #2080: org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY" no

2018-12-21 Thread GitBox
rainmakerho opened a new issue #2080: 
org.apache.skywalking.oap.server.storage.plugin.jdbc.h2.dao.H2ServiceInventoryCacheDAO
 -657805 [pool-10-thread-1] ERROR [] - Table "SERVICE_INVENTORY" not found; SQL 
statement: select * from service_inventory where is_address=?  and 
mapping_last_update_time>? LIMIT 50  [42102-196]
URL: https://github.com/apache/incubator-skywalking/issues/2080
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [x] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
 I follow setup instructions and install H2 database. I dbclick 
bin\startup.bat and open the browser navigate to localhost:8080. I will get 
**Table "SERVICE_INVENTORY" not found** error. 
   Is it that I something missing it? Thanks.
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
SkyWalking v 6.0.0-alpha, Windows 2016, Open JDK 11.0.1, h2-1.4.197
   
   - Which company or project?
   
   - What happen?
   If possible, provide a way for reproducing the error. e.g. demo application, 
component version.
   
   ___
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking-website] branch asf-site updated (ba6e778 -> b583d00)

2018-12-21 Thread tanjian
This is an automated email from the ASF dual-hosted git repository.

tanjian pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git.


 discard ba6e778  Update asf-site
 new b583d00  Update asf-site

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ba6e778)
\
 N -- N -- N   refs/heads/asf-site (b583d00)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 404.html | 8 
 assets/css/0.styles.58230105.css | 1 +
 assets/css/0.styles.83c54a22.css | 1 -
 assets/js/18.5f2afb01.js | 1 +
 assets/js/18.c444c9ed.js | 1 -
 assets/js/{app.550943b8.js => app.3652ea8f.js}   | 6 +++---
 blog/2018-05-24-skywalking-net.html  | 6 +++---
 blog/2018-12-12-skywalking-service-mesh-ready.html   | 6 +++---
 blog/index.html  | 6 +++---
 downloads/index.html | 6 +++---
 events/index.html| 6 +++---
 index.html   | 8 
 team/index.html  | 6 +++---
 zh/blog/2018-05-24-skywalking-net.html   | 6 +++---
 zh/blog/2018-12-18-Apache-SkyWalking-5-0-UserGuide.html  | 6 +++---
 zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.html | 6 +++---
 zh/blog/2018-12-21-SkyWalking-source-code-read.html  | 6 +++---
 zh/blog/index.html   | 6 +++---
 zh/doc/index.html| 6 +++---
 zh/downloads/index.html  | 6 +++---
 zh/events/index.html | 8 
 zh/index.html| 8 
 zh/team/index.html   | 6 +++---
 23 files changed, 63 insertions(+), 63 deletions(-)
 create mode 100644 assets/css/0.styles.58230105.css
 delete mode 100644 assets/css/0.styles.83c54a22.css
 create mode 100644 assets/js/18.5f2afb01.js
 delete mode 100644 assets/js/18.c444c9ed.js
 rename assets/js/{app.550943b8.js => app.3652ea8f.js} (73%)



[GitHub] TinyAllen closed pull request #18: Update: update homepage event & fix bug.

2018-12-21 Thread GitBox
TinyAllen closed pull request #18: Update: update homepage event & fix bug.
URL: https://github.com/apache/incubator-skywalking-website/pull/18
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/.vuepress/theme/layouts/Home.vue 
b/docs/.vuepress/theme/layouts/Home.vue
index 6104572..b5773a1 100755
--- a/docs/.vuepress/theme/layouts/Home.vue
+++ b/docs/.vuepress/theme/layouts/Home.vue
@@ -48,12 +48,31 @@
 
   
 
-
+
   {{data.news.title}}
-  
-{{i.header}}
-{{i.time}}
-{{i.content}}
+  
+
+  {{data.news.content[0].header}}
+  {{data.news.content[0].time}}
+  {{data.news.content[0].content}}
+
+
+  {{data.news.content[1].header}}
+  {{data.news.content[1].time}}
+  {{data.news.content[1].content}}
+
+  
+  
+
+  {{data.news.content[2].header}}
+  {{data.news.content[2].time}}
+  {{data.news.content[2].content}}
+
+
+  {{data.news.content[3].header}}
+  {{data.news.content[3].time}}
+  {{data.news.content[3].content}}
+
   
 
 
@@ -93,6 +112,7 @@ export default {
 
 
 

[incubator-skywalking-website] branch master updated: Update: update homepage event & fix bug. (#18)

2018-12-21 Thread ywang
This is an automated email from the ASF dual-hosted git repository.

ywang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 4f1edc1  Update: update homepage event & fix bug. (#18)
4f1edc1 is described below

commit 4f1edc15537d7b922324ad954c48ade1b105434b
Author: Allen Wang 
AuthorDate: Sat Dec 22 12:05:35 2018 +0800

Update: update homepage event & fix bug. (#18)

* Update: update Homepage Event

* Update: fix homepage event layout bug
---
 docs/.vuepress/theme/layouts/Home.vue | 30 +-
 docs/README.md|  7 +++
 docs/zh/README.md |  7 +++
 docs/zh/events/README.md  |  2 +-
 4 files changed, 32 insertions(+), 14 deletions(-)

diff --git a/docs/.vuepress/theme/layouts/Home.vue 
b/docs/.vuepress/theme/layouts/Home.vue
index 6104572..b5773a1 100755
--- a/docs/.vuepress/theme/layouts/Home.vue
+++ b/docs/.vuepress/theme/layouts/Home.vue
@@ -48,12 +48,31 @@
 
   
 
-
+
   {{data.news.title}}
-  
-{{i.header}}
-{{i.time}}
-{{i.content}}
+  
+
+  {{data.news.content[0].header}}
+  {{data.news.content[0].time}}
+  {{data.news.content[0].content}}
+
+
+  {{data.news.content[1].header}}
+  {{data.news.content[1].time}}
+  {{data.news.content[1].content}}
+
+  
+  
+
+  {{data.news.content[2].header}}
+  {{data.news.content[2].time}}
+  {{data.news.content[2].content}}
+
+
+  {{data.news.content[3].header}}
+  {{data.news.content[3].time}}
+  {{data.news.content[3].content}}
+
   
 
 
@@ -93,6 +112,7 @@ export default {
 
 
 

[GitHub] TinyAllen opened a new pull request #18: Update: update homepage event & fix bug.

2018-12-21 Thread GitBox
TinyAllen opened a new pull request #18: Update: update homepage event & fix 
bug.
URL: https://github.com/apache/incubator-skywalking-website/pull/18
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking-website] branch asf-site updated (b460a67 -> ba6e778)

2018-12-21 Thread tanjian
This is an automated email from the ASF dual-hosted git repository.

tanjian pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git.


 discard b460a67  Update asf-site
 new ba6e778  Update asf-site

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b460a67)
\
 N -- N -- N   refs/heads/asf-site (ba6e778)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 404.html | 6 +++---
 assets/js/10.3e634c35.js | 1 -
 assets/js/10.fd1134f8.js | 1 +
 assets/js/{11.a4022c86.js => 11.d1d9ef6f.js} | 2 +-
 assets/js/18.4efbb3a8.js | 1 -
 assets/js/18.c444c9ed.js | 1 +
 assets/js/{19.df82648e.js => 19.0c0b0bce.js} | 2 +-
 assets/js/{app.42559bc7.js => app.550943b8.js}   | 6 +++---
 blog/2018-05-24-skywalking-net.html  | 4 ++--
 blog/2018-12-12-skywalking-service-mesh-ready.html   | 4 ++--
 blog/index.html  | 4 ++--
 downloads/index.html | 4 ++--
 events/index.html| 6 +++---
 index.html   | 4 ++--
 team/index.html  | 6 +++---
 zh/blog/2018-05-24-skywalking-net.html   | 4 ++--
 zh/blog/2018-12-18-Apache-SkyWalking-5-0-UserGuide.html  | 4 ++--
 zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.html | 4 ++--
 zh/blog/2018-12-21-SkyWalking-source-code-read.html  | 4 ++--
 zh/blog/index.html   | 4 ++--
 zh/doc/index.html| 4 ++--
 zh/downloads/index.html  | 4 ++--
 zh/events/index.html | 6 +++---
 zh/index.html| 4 ++--
 zh/team/index.html   | 6 +++---
 25 files changed, 48 insertions(+), 48 deletions(-)
 delete mode 100644 assets/js/10.3e634c35.js
 create mode 100644 assets/js/10.fd1134f8.js
 rename assets/js/{11.a4022c86.js => 11.d1d9ef6f.js} (83%)
 delete mode 100644 assets/js/18.4efbb3a8.js
 create mode 100644 assets/js/18.c444c9ed.js
 rename assets/js/{19.df82648e.js => 19.0c0b0bce.js} (83%)
 rename assets/js/{app.42559bc7.js => app.550943b8.js} (86%)



[incubator-skywalking-website] branch master updated: update (#17)

2018-12-21 Thread ywang
This is an automated email from the ASF dual-hosted git repository.

ywang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 2e5f82d  update (#17)
2e5f82d is described below

commit 2e5f82d1a91baaf3c579738290fc5904fcd5cce8
Author: Allen Wang 
AuthorDate: Sat Dec 22 11:10:22 2018 +0800

update (#17)
---
 docs/events/README.md| 4 
 docs/team/README.md  | 1 +
 docs/zh/events/README.md | 4 
 docs/zh/team/README.md   | 1 +
 4 files changed, 10 insertions(+)

diff --git a/docs/events/README.md b/docs/events/README.md
index e564940..ef8977b 100755
--- a/docs/events/README.md
+++ b/docs/events/README.md
@@ -1,5 +1,9 @@
 # SkyWalking Events
 
+## Welcome Yao Wang as a new PPMC.
+## Dec. 22th, 2018
+Based on his contributions. Including created 
[RocketBot](https://github.com/TinyAllen/rocketbot) as our secondary UI, new 
[website](http://skywalking.apache.org/) and very cool trace view page in next 
release. he has been accepted as SkyWalking PPMC. Welcome aboard.
+
 ## Welcome Yixiong Cao as a new committer.
 ## Dec. 10th, 2018
 Based on his contributions to the project, he has been accepted as SkyWalking 
committer. Welcome aboard.
diff --git a/docs/team/README.md b/docs/team/README.md
index 645c5aa..04933bb 100755
--- a/docs/team/README.md
+++ b/docs/team/README.md
@@ -29,6 +29,7 @@ Members include PPMC, committer and mentor of SkyWalking 
project. The List in al
 |Yuntao Li| liyuntao |
 |Zhang Kewei| zhangkewei |
 |Shinn Zhang| zhangxin |
+|Yao Wang| ywang |
 
 ### Committer
 | Name |Apache ID|
diff --git a/docs/zh/events/README.md b/docs/zh/events/README.md
index 88b11a8..d8a8a3e 100755
--- a/docs/zh/events/README.md
+++ b/docs/zh/events/README.md
@@ -1,5 +1,9 @@
 # SkyWalking 事件概要
 
+## 欢迎王垚成为PPMC
+## 2018年12月22日
+根据他的贡献,包括制作了[RocketBot](https://github.com/TinyAllen/rocketbot)作为我们的第二套UI, 
新的[网站](http://skywalking.apache.org/) 和非常酷的链路追踪页面.他已被接纳为SkyWalking PPMC。欢迎。
+
 ## 欢迎曹奕雄成为committer
 ## 2018年12月10日
 根据他对该项目的贡献,他已被接纳为SkyWalking提交者。欢迎。
diff --git a/docs/zh/team/README.md b/docs/zh/team/README.md
index ac43ea9..995844d 100755
--- a/docs/zh/team/README.md
+++ b/docs/zh/team/README.md
@@ -27,6 +27,7 @@ SkyWalking团队由孵化器项目管理委员会成员(以下简称“成员
 |Yang Bai| baiyang |
 |Yuntao Li| liyuntao |
 |Zhang Kewei| zhangkewei |
+|Yao Wang| ywang |
 
 ### 提交者
 | 名字 |Apache ID|



[GitHub] TinyAllen closed pull request #17: Update: add skywalking event

2018-12-21 Thread GitBox
TinyAllen closed pull request #17: Update: add skywalking event
URL: https://github.com/apache/incubator-skywalking-website/pull/17
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/events/README.md b/docs/events/README.md
index e564940..ef8977b 100755
--- a/docs/events/README.md
+++ b/docs/events/README.md
@@ -1,5 +1,9 @@
 # SkyWalking Events
 
+## Welcome Yao Wang as a new PPMC.
+## Dec. 22th, 2018
+Based on his contributions. Including created 
[RocketBot](https://github.com/TinyAllen/rocketbot) as our secondary UI, new 
[website](http://skywalking.apache.org/) and very cool trace view page in next 
release. he has been accepted as SkyWalking PPMC. Welcome aboard.
+
 ## Welcome Yixiong Cao as a new committer.
 ## Dec. 10th, 2018
 Based on his contributions to the project, he has been accepted as SkyWalking 
committer. Welcome aboard.
diff --git a/docs/team/README.md b/docs/team/README.md
index 645c5aa..04933bb 100755
--- a/docs/team/README.md
+++ b/docs/team/README.md
@@ -29,6 +29,7 @@ Members include PPMC, committer and mentor of SkyWalking 
project. The List in al
 |Yuntao Li| liyuntao |
 |Zhang Kewei| zhangkewei |
 |Shinn Zhang| zhangxin |
+|Yao Wang| ywang |
 
 ### Committer
 | Name |Apache ID|
diff --git a/docs/zh/events/README.md b/docs/zh/events/README.md
index 88b11a8..d8a8a3e 100755
--- a/docs/zh/events/README.md
+++ b/docs/zh/events/README.md
@@ -1,5 +1,9 @@
 # SkyWalking 事件概要
 
+## 欢迎王垚成为PPMC
+## 2018年12月22日
+根据他的贡献,包括制作了[RocketBot](https://github.com/TinyAllen/rocketbot)作为我们的第二套UI, 
新的[网站](http://skywalking.apache.org/) 和非常酷的链路追踪页面.他已被接纳为SkyWalking PPMC。欢迎。
+
 ## 欢迎曹奕雄成为committer
 ## 2018年12月10日
 根据他对该项目的贡献,他已被接纳为SkyWalking提交者。欢迎。
diff --git a/docs/zh/team/README.md b/docs/zh/team/README.md
index ac43ea9..995844d 100755
--- a/docs/zh/team/README.md
+++ b/docs/zh/team/README.md
@@ -27,6 +27,7 @@ SkyWalking团队由孵化器项目管理委员会成员(以下简称“成员
 |Yang Bai| baiyang |
 |Yuntao Li| liyuntao |
 |Zhang Kewei| zhangkewei |
+|Yao Wang| ywang |
 
 ### 提交者
 | 名字 |Apache ID|


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] TinyAllen opened a new pull request #17: Update: add skywalking event

2018-12-21 Thread GitBox
TinyAllen opened a new pull request #17: Update: add skywalking event
URL: https://github.com/apache/incubator-skywalking-website/pull/17
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking-website] branch asf-site updated (d6fc106 -> b460a67)

2018-12-21 Thread tanjian
This is an automated email from the ASF dual-hosted git repository.

tanjian pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git.


 discard d6fc106  Update asf-site
 new b460a67  Update asf-site

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d6fc106)
\
 N -- N -- N   refs/heads/asf-site (b460a67)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 404.html   |  4 +-
 assets/js/{10.f6b81329.js => 10.3e634c35.js}   |  2 +-
 assets/js/{11.9ac3cb70.js => 11.a4022c86.js}   |  2 +-
 assets/js/{12.1f7fba77.js => 12.7501a15f.js}   |  2 +-
 assets/js/{13.22adc26d.js => 13.5856fe60.js}   |  2 +-
 assets/js/14.dba34de2.js   |  1 +
 assets/js/{14.d81d5cda.js => 15.976c8b0a.js}   |  2 +-
 assets/js/{15.16919c51.js => 16.cfc58b35.js}   |  2 +-
 assets/js/{16.51bb3248.js => 17.90cbef6b.js}   |  2 +-
 assets/js/{17.b7f86971.js => 18.4efbb3a8.js}   |  2 +-
 assets/js/{18.70f3d880.js => 19.df82648e.js}   |  2 +-
 assets/js/19.f6e2da35.js   |  1 -
 assets/js/{2.fe45e099.js => 2.1a3782f8.js} |  2 +-
 assets/js/20.5aa17b2b.js   |  1 +
 assets/js/{3.59af78e9.js => 3.79fc37dd.js} |  2 +-
 assets/js/{5.82e3ee5d.js => 5.60d5aeca.js} |  2 +-
 assets/js/{6.5c8121b9.js => 6.ba6b94b5.js} |  2 +-
 assets/js/{7.6c9bc4bb.js => 7.d5373754.js} |  2 +-
 assets/js/{8.3aa241bb.js => 8.02d7cd89.js} |  2 +-
 assets/js/{9.7130faae.js => 9.b2b8f549.js} |  2 +-
 assets/js/{app.4fe1b2a9.js => app.42559bc7.js} |  6 +--
 blog/2018-05-24-skywalking-net.html|  4 +-
 blog/2018-12-12-skywalking-service-mesh-ready.html |  4 +-
 blog/index.html|  4 +-
 downloads/index.html   |  4 +-
 events/index.html  |  4 +-
 index.html |  4 +-
 team/index.html|  4 +-
 zh/blog/2018-05-24-skywalking-net.html |  4 +-
 ...2018-12-18-Apache-SkyWalking-5-0-UserGuide.html |  4 +-
 ...018-12-21-SkyWalking-apm-sniffer-beginning.html |  4 +-
 .../2018-12-21-SkyWalking-source-code-read.html| 61 ++
 zh/blog/index.html |  6 +--
 zh/doc/index.html  |  4 +-
 zh/downloads/index.html|  4 +-
 zh/events/index.html   |  4 +-
 zh/index.html  |  4 +-
 zh/team/index.html |  4 +-
 38 files changed, 117 insertions(+), 55 deletions(-)
 rename assets/js/{10.f6b81329.js => 10.3e634c35.js} (97%)
 rename assets/js/{11.9ac3cb70.js => 11.a4022c86.js} (98%)
 rename assets/js/{12.1f7fba77.js => 12.7501a15f.js} (65%)
 rename assets/js/{13.22adc26d.js => 13.5856fe60.js} (99%)
 create mode 100644 assets/js/14.dba34de2.js
 rename assets/js/{14.d81d5cda.js => 15.976c8b0a.js} (65%)
 rename assets/js/{15.16919c51.js => 16.cfc58b35.js} (75%)
 rename assets/js/{16.51bb3248.js => 17.90cbef6b.js} (99%)
 rename assets/js/{17.b7f86971.js => 18.4efbb3a8.js} (97%)
 rename assets/js/{18.70f3d880.js => 19.df82648e.js} (98%)
 delete mode 100644 assets/js/19.f6e2da35.js
 rename assets/js/{2.fe45e099.js => 2.1a3782f8.js} (99%)
 create mode 100644 assets/js/20.5aa17b2b.js
 rename assets/js/{3.59af78e9.js => 3.79fc37dd.js} (99%)
 rename assets/js/{5.82e3ee5d.js => 5.60d5aeca.js} (65%)
 rename assets/js/{6.5c8121b9.js => 6.ba6b94b5.js} (97%)
 rename assets/js/{7.6c9bc4bb.js => 7.d5373754.js} (99%)
 rename assets/js/{8.3aa241bb.js => 8.02d7cd89.js} (65%)
 rename assets/js/{9.7130faae.js => 9.b2b8f549.js} (99%)
 rename assets/js/{app.4fe1b2a9.js => app.42559bc7.js} (81%)
 create mode 100644 zh/blog/2018-12-21-SkyWalking-source-code-read.html



[incubator-skywalking-website] branch master updated: add SkyWalking source code read (#16)

2018-12-21 Thread tanjian
This is an automated email from the ASF dual-hosted git repository.

tanjian pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
 new eb17d21  add SkyWalking source code read (#16)
eb17d21 is described below

commit eb17d21ffdab49aec2ea7d761977323ddc0cef60
Author: 芋道源码 
AuthorDate: Fri Dec 21 10:17:36 2018 -0600

add SkyWalking source code read (#16)

* * add md '2018-12-21-SkyWalking-source-code-read'

* * revert package-lock.json

* * remove blank space

* * remove repeat “源码”
---
 .../blog/2018-12-21-SkyWalking-source-code-read.md | 64 ++
 docs/zh/blog/README.md | 10 ++--
 2 files changed, 70 insertions(+), 4 deletions(-)

diff --git a/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md 
b/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md
new file mode 100644
index 000..4953a0e
--- /dev/null
+++ b/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md
@@ -0,0 +1,64 @@
+# SkyWalking源码解析合集
+
+## 搭建调试环境
+
+阅读 SkyWalking 源码,从配置调试环境开始。
+
+一定一定一定不要干读代码,而是通过调试的方式。
+
+> 作者:谭建
+
+- [01 通过 Skywalking-5.x 
版本的源码构建并运行](https://github.com/JaredTan95/skywalking-tutorials/blob/master/01-%E9%80%9A%E8%BF%87Skywalking-5.x%E7%89%88%E6%9C%AC%E7%9A%84%E6%BA%90%E7%A0%81%E6%9E%84%E5%BB%BA%E5%B9%B6%E8%BF%90%E8%A1%8C/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av35806851/) | 
[腾讯视频](https://v.qq.com/x/page/d07924w6u13.html)
+- [02 通过 Skywalking-6.x 
版本的源码构建并运行](https://github.com/JaredTan95/skywalking-tutorials/blob/master/02-%E9%80%9A%E8%BF%87Skywalking-6.x%E7%89%88%E6%9C%AC%E7%9A%84%E6%BA%90%E7%A0%81%E6%9E%84%E5%BB%BA%E5%B9%B6%E8%BF%90%E8%A1%8C/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av35990012/) | 
[腾讯视频](https://v.qq.com/x/page/s0793890ce6.html)
+- [03 Java 应用(探针)接入 
Skywalking[6.x]](https://github.com/JaredTan95/skywalking-tutorials/blob/master/03-Java%E5%BA%94%E7%94%A8%EF%BC%88%E6%8E%A2%E9%92%88%EF%BC%89%E6%8E%A5%E5%85%A5Skywalking/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av36172319/) | 
[腾讯视频](https://v.qq.com/x/page/w0795uri7jy.html)
+
+## SkyWalking 3.X 源码解析合集
+
+> 作者:芋道源码
+
+虽然是基于 3.X 版本的源码解析,但是对于阅读 SkyWalking Java Agent 和插件部分,同样适用。
+
+对于 SkyWalking Collector 部分,可以作为一定的参考。
+
+- [《SkyWalking 源码分析 —— 
调试环境搭建》](http://www.iocoder.cn/SkyWalking/build-debugging-environment?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 
初始化》](http://www.iocoder.cn/SkyWalking/agent-init?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 
插件体系》](http://www.iocoder.cn/SkyWalking/agent-plugin-system?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector 
初始化》](http://www.iocoder.cn/SkyWalking/collector-init?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Cluster 
集群管理》](http://www.iocoder.cn/SkyWalking/collector-cluster-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Client Component 
客户端组件》](http://www.iocoder.cn/SkyWalking/collector-client-component?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Server Component 
服务器组件》](http://www.iocoder.cn/SkyWalking/collector-server-component?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Jetty Server 
Manager》](http://www.iocoder.cn/SkyWalking/collector-jetty-server-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector gRPC Server 
Manager》](http://www.iocoder.cn/SkyWalking/collector-grpc-server-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Naming Server 
命名服务》](http://www.iocoder.cn/SkyWalking/collector-naming-server?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Queue 
队列组件》](http://www.iocoder.cn/SkyWalking/collector-queue-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Storage 
存储组件》](http://www.iocoder.cn/SkyWalking/collector-storage-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Streaming Computing 
流式处理(一)》](http://www.iocoder.cn/SkyWalking/collector-streaming-first?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Streaming Computing 
流式处理(二)》](http://www.iocoder.cn/SkyWalking/collector-streaming-second?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Cache 
缓存组件》](http://www.iocoder.cn/SkyWalking/collector-cache-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Remote 
远程通信服务》](http://www.iocoder.cn/SkyWalking/collector-remote-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— DataCarrier 
异步处理库》](http://www.iocoder.cn/SkyWalking/data-carrier?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent Remote 
远程通信服务》](http://www.iocoder.cn/SkyWalking/agent-remote-manager?vip&guanfang)
+- [《SkyWalking 源码分析 —— 
应用于应用实例的注册》](http://www.iocoder.cn/SkyWalking/register?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent DictionaryManager 
字典管理》](http://www.iocoder.cn/SkyWalking/agent-dictionary?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 收集 Trace 
数据》](http://www.iocoder.cn/SkyWalking/agent-collect-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 发送 Trace 
数据》](http://www.iocoder.cn/SkyWalking/agent-send-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— Coll

[GitHub] JaredTan95 closed pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
JaredTan95 closed pull request #16: add SkyWalking source code read
URL: https://github.com/apache/incubator-skywalking-website/pull/16
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md 
b/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md
new file mode 100644
index 000..4953a0e
--- /dev/null
+++ b/docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md
@@ -0,0 +1,64 @@
+# SkyWalking源码解析合集
+
+## 搭建调试环境
+
+阅读 SkyWalking 源码,从配置调试环境开始。
+
+一定一定一定不要干读代码,而是通过调试的方式。
+
+> 作者:谭建
+
+- [01 通过 Skywalking-5.x 
版本的源码构建并运行](https://github.com/JaredTan95/skywalking-tutorials/blob/master/01-%E9%80%9A%E8%BF%87Skywalking-5.x%E7%89%88%E6%9C%AC%E7%9A%84%E6%BA%90%E7%A0%81%E6%9E%84%E5%BB%BA%E5%B9%B6%E8%BF%90%E8%A1%8C/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av35806851/) | 
[腾讯视频](https://v.qq.com/x/page/d07924w6u13.html)
+- [02 通过 Skywalking-6.x 
版本的源码构建并运行](https://github.com/JaredTan95/skywalking-tutorials/blob/master/02-%E9%80%9A%E8%BF%87Skywalking-6.x%E7%89%88%E6%9C%AC%E7%9A%84%E6%BA%90%E7%A0%81%E6%9E%84%E5%BB%BA%E5%B9%B6%E8%BF%90%E8%A1%8C/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av35990012/) | 
[腾讯视频](https://v.qq.com/x/page/s0793890ce6.html)
+- [03 Java 应用(探针)接入 
Skywalking[6.x]](https://github.com/JaredTan95/skywalking-tutorials/blob/master/03-Java%E5%BA%94%E7%94%A8%EF%BC%88%E6%8E%A2%E9%92%88%EF%BC%89%E6%8E%A5%E5%85%A5Skywalking/Note.md)
 👉:[哔哩哔哩](https://www.bilibili.com/video/av36172319/) | 
[腾讯视频](https://v.qq.com/x/page/w0795uri7jy.html)
+
+## SkyWalking 3.X 源码解析合集
+
+> 作者:芋道源码
+
+虽然是基于 3.X 版本的源码解析,但是对于阅读 SkyWalking Java Agent 和插件部分,同样适用。
+
+对于 SkyWalking Collector 部分,可以作为一定的参考。
+
+- [《SkyWalking 源码分析 —— 
调试环境搭建》](http://www.iocoder.cn/SkyWalking/build-debugging-environment?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 
初始化》](http://www.iocoder.cn/SkyWalking/agent-init?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 
插件体系》](http://www.iocoder.cn/SkyWalking/agent-plugin-system?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector 
初始化》](http://www.iocoder.cn/SkyWalking/collector-init?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Cluster 
集群管理》](http://www.iocoder.cn/SkyWalking/collector-cluster-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Client Component 
客户端组件》](http://www.iocoder.cn/SkyWalking/collector-client-component?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Server Component 
服务器组件》](http://www.iocoder.cn/SkyWalking/collector-server-component?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Jetty Server 
Manager》](http://www.iocoder.cn/SkyWalking/collector-jetty-server-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector gRPC Server 
Manager》](http://www.iocoder.cn/SkyWalking/collector-grpc-server-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Naming Server 
命名服务》](http://www.iocoder.cn/SkyWalking/collector-naming-server?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Queue 
队列组件》](http://www.iocoder.cn/SkyWalking/collector-queue-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Storage 
存储组件》](http://www.iocoder.cn/SkyWalking/collector-storage-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Streaming Computing 
流式处理(一)》](http://www.iocoder.cn/SkyWalking/collector-streaming-first?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Streaming Computing 
流式处理(二)》](http://www.iocoder.cn/SkyWalking/collector-streaming-second?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Cache 
缓存组件》](http://www.iocoder.cn/SkyWalking/collector-cache-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector Remote 
远程通信服务》](http://www.iocoder.cn/SkyWalking/collector-remote-module?vip&guanfang)
+- [《SkyWalking 源码分析 —— DataCarrier 
异步处理库》](http://www.iocoder.cn/SkyWalking/data-carrier?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent Remote 
远程通信服务》](http://www.iocoder.cn/SkyWalking/agent-remote-manager?vip&guanfang)
+- [《SkyWalking 源码分析 —— 
应用于应用实例的注册》](http://www.iocoder.cn/SkyWalking/register?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent DictionaryManager 
字典管理》](http://www.iocoder.cn/SkyWalking/agent-dictionary?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 收集 Trace 
数据》](http://www.iocoder.cn/SkyWalking/agent-collect-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— Agent 发送 Trace 
数据》](http://www.iocoder.cn/SkyWalking/agent-send-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector 接收 Trace 
数据》](http://www.iocoder.cn/SkyWalking/collector-receive-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— Collector 存储 Trace 
数据》](http://www.iocoder.cn/SkyWalking/collector-store-trace?vip&guanfang)
+- [《SkyWalking 源码分析 —— JVM 
指标的收集与存储》](http://www.iocoder.cn/SkyWalking/jvm-collect?vip&guanfang)
+- [《SkyWalking 源码分析 —— 
运维界面(一)之应用视角》](http://www.iocoder.cn/SkyWalking/ui-1-application?vip&guanfang)
+- [《SkyWalking 源码分析 —— 
运维界面(二)之

[GitHub] JaredTan95 commented on a change in pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
JaredTan95 commented on a change in pull request #16: add SkyWalking source 
code read
URL: 
https://github.com/apache/incubator-skywalking-website/pull/16#discussion_r243622709
 
 

 ##
 File path: docs/zh/blog/README.md
 ##
 @@ -3,6 +3,11 @@ layout: LayoutBlog
 
 blog: 
 
+- title: SkyWalking 源码源码解析合集
 
 Review comment:
   SkyWalking 源码源码解析合集--->SkyWalking 源码解析合集


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] JaredTan95 commented on a change in pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
JaredTan95 commented on a change in pull request #16: add SkyWalking source 
code read
URL: 
https://github.com/apache/incubator-skywalking-website/pull/16#discussion_r243623001
 
 

 ##
 File path: docs/zh/blog/README.md
 ##
 @@ -3,6 +3,11 @@ layout: LayoutBlog
 
 blog: 
 
+- title: SkyWalking 源码源码解析合集
+  name: 2018-12-21-SkyWalking-source-code-read
+  time: 芋道源码 整理,12月21日,2018
+  short: SkyWalking 源码源码解析合集
 
 Review comment:
   SkyWalking 源码源码解析合集--->SkyWalking源码解析合集


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] JaredTan95 commented on a change in pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
JaredTan95 commented on a change in pull request #16: add SkyWalking source 
code read
URL: 
https://github.com/apache/incubator-skywalking-website/pull/16#discussion_r243623088
 
 

 ##
 File path: docs/zh/blog/2018-12-21-SkyWalking-source-code-read.md
 ##
 @@ -0,0 +1,64 @@
+# SkyWalking 源码源码解析合集
 
 Review comment:
   SkyWalking 源码源码解析合集--->SkyWalking源码解析合集


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] JaredTan95 commented on a change in pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
JaredTan95 commented on a change in pull request #16: add SkyWalking source 
code read
URL: 
https://github.com/apache/incubator-skywalking-website/pull/16#discussion_r243622709
 
 

 ##
 File path: docs/zh/blog/README.md
 ##
 @@ -3,6 +3,11 @@ layout: LayoutBlog
 
 blog: 
 
+- title: SkyWalking 源码源码解析合集
 
 Review comment:
   SkyWalking 源码源码解析合集--->SkyWalking源码解析合集


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] YunaiV opened a new pull request #16: add SkyWalking source code read

2018-12-21 Thread GitBox
YunaiV opened a new pull request #16: add SkyWalking source code read
URL: https://github.com/apache/incubator-skywalking-website/pull/16
 
 
   * add md '2018-12-21-SkyWalking-source-code-read'


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking] branch refactor-register deleted (was a9d1d9f)

2018-12-21 Thread wusheng
This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a change to branch refactor-register
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git.


 was a9d1d9f  Merge branch 'master' into refactor-register

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[GitHub] peng-yongsheng closed pull request #2075: Refactor register API for making integration easier.

2018-12-21 Thread GitBox
peng-yongsheng closed pull request #2075: Refactor register API for making 
integration easier.
URL: https://github.com/apache/incubator-skywalking/pull/2075
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking] branch master updated: Refactor register API for making integration easier. (#2075)

2018-12-21 Thread pengys
This is an automated email from the ASF dual-hosted git repository.

pengys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git


The following commit(s) were added to refs/heads/master by this push:
 new c592aea  Refactor register API for making integration easier. (#2075)
c592aea is described below

commit c592aea8db02293861e45a0e9e34de17d5883a99
Author: 吴晟 Wu Sheng 
AuthorDate: Fri Dec 21 22:32:06 2018 +0800

Refactor register API for making integration easier. (#2075)

* Refactor register API for making integration easier.

* Fix wrong refactor.
---
 .../server/core/register/worker/RegisterPersistentWorker.java| 4 ++--
 .../apache/skywalking/oap/server/core/storage/IRegisterDAO.java  | 9 -
 .../server/storage/plugin/elasticsearch/base/RegisterEsDAO.java  | 7 ---
 .../oap/server/storage/plugin/jdbc/h2/dao/H2RegisterDAO.java | 7 ---
 4 files changed, 18 insertions(+), 9 deletions(-)

diff --git 
a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/worker/RegisterPersistentWorker.java
 
b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/worker/RegisterPersistentWorker.java
index b315074..61b287c 100644
--- 
a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/worker/RegisterPersistentWorker.java
+++ 
b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/worker/RegisterPersistentWorker.java
@@ -78,8 +78,8 @@ public class RegisterPersistentWorker extends 
AbstractWorker {
 dbSource.combine(source);
 registerDAO.forceUpdate(modelName, dbSource);
 } else {
-int sequence = registerDAO.max(modelName);
-source.setSequence(sequence + 1);
+int sequence = 
registerDAO.registerId(modelName, source);
+source.setSequence(sequence);
 registerDAO.forceInsert(modelName, source);
 }
 } catch (Throwable t) {
diff --git 
a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/IRegisterDAO.java
 
b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/IRegisterDAO.java
index 18350a9..d42e920 100644
--- 
a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/IRegisterDAO.java
+++ 
b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/IRegisterDAO.java
@@ -26,7 +26,14 @@ import 
org.apache.skywalking.oap.server.core.register.RegisterSource;
  */
 public interface IRegisterDAO extends DAO {
 
-int max(String modelName) throws IOException;
+/**
+ * According modelName and register source, try to get the unique ID for 
this particular model.
+ * @param modelName
+ * @param registerSource
+ * @return the unique id. This ID for each model should start with 2. 1 
has been reserved.
+ * @throws IOException
+ */
+int registerId(String modelName, RegisterSource registerSource) throws 
IOException;
 
 RegisterSource get(String modelName, String id) throws IOException;
 
diff --git 
a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/RegisterEsDAO.java
 
b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/RegisterEsDAO.java
index 1790854..11d423a 100644
--- 
a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/RegisterEsDAO.java
+++ 
b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/RegisterEsDAO.java
@@ -78,7 +78,8 @@ public class RegisterEsDAO extends EsDAO implements 
IRegisterDAO {
 getClient().forceUpdate(modelName, source.id(), builder);
 }
 
-@Override public int max(String modelName) throws IOException {
+@Override public int registerId(String modelName,
+RegisterSource registerSource) throws IOException {
 SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
 
searchSourceBuilder.aggregation(AggregationBuilders.max(RegisterSource.SEQUENCE).field(RegisterSource.SEQUENCE));
 searchSourceBuilder.size(0);
@@ -91,9 +92,9 @@ public class RegisterEsDAO extends EsDAO implements 
IRegisterDAO {
 
 int id = (int)agg.getValue();
 if (id == Integer.MAX_VALUE || id == Integer.MIN_VALUE) {
-return 1;
+return 2;
 } else {
-return id;
+return id + 1;

[GitHub] wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'
URL: 
https://github.com/apache/incubator-skywalking-website/pull/15#issuecomment-449378209
 
 
   @zhaoyuguang This is a very usage blog. Would you consider to provide a 
English version blog of this, too?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[incubator-skywalking-website] branch asf-site updated (c0bd51b -> d6fc106)

2018-12-21 Thread tanjian
This is an automated email from the ASF dual-hosted git repository.

tanjian pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git.


 discard c0bd51b  Update asf-site
 new d6fc106  Update asf-site

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (c0bd51b)
\
 N -- N -- N   refs/heads/asf-site (d6fc106)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 404.html   |   6 +-
 assets/js/{10.77750a2d.js => 10.f6b81329.js}   |   2 +-
 assets/js/{11.33cb6293.js => 11.9ac3cb70.js}   |   2 +-
 assets/js/{12.35350910.js => 12.1f7fba77.js}   |   2 +-
 assets/js/13.22adc26d.js   |   1 +
 assets/js/{13.c6563891.js => 14.d81d5cda.js}   |   2 +-
 assets/js/{14.68d4bf16.js => 15.16919c51.js}   |   2 +-
 assets/js/{15.624060ab.js => 16.51bb3248.js}   |   2 +-
 assets/js/{16.98373344.js => 17.b7f86971.js}   |   2 +-
 assets/js/18.5d91aa8e.js   |   1 -
 assets/js/{17.d6e30535.js => 18.70f3d880.js}   |   2 +-
 assets/js/19.f6e2da35.js   |   1 +
 assets/js/{2.376ba2d2.js => 2.fe45e099.js} |   2 +-
 assets/js/{3.be66625d.js => 3.59af78e9.js} |   2 +-
 assets/js/{4.edcc6dfb.js => 4.8d9a4116.js} |   2 +-
 assets/js/{5.60d5aeca.js => 5.82e3ee5d.js} |   2 +-
 assets/js/{6.579501c9.js => 6.5c8121b9.js} |   2 +-
 assets/js/{7.1d348ae3.js => 7.6c9bc4bb.js} |   2 +-
 assets/js/{8.4849d5b9.js => 8.3aa241bb.js} |   2 +-
 assets/js/{app.8a966a0f.js => app.4fe1b2a9.js} |   6 +-
 blog/2018-05-24-skywalking-net.html|   4 +-
 blog/2018-12-12-skywalking-service-mesh-ready.html |   4 +-
 blog/index.html|   4 +-
 downloads/index.html   |   4 +-
 events/index.html  |   4 +-
 index.html |   4 +-
 team/index.html|   4 +-
 zh/blog/2018-05-24-skywalking-net.html |   4 +-
 ...2018-12-18-Apache-SkyWalking-5-0-UserGuide.html |   4 +-
 ...018-12-21-SkyWalking-apm-sniffer-beginning.html | 189 +
 zh/blog/index.html |   6 +-
 zh/doc/index.html  |   4 +-
 zh/downloads/index.html|   4 +-
 zh/events/index.html   |   4 +-
 zh/index.html  |   4 +-
 zh/team/index.html |   4 +-
 36 files changed, 243 insertions(+), 53 deletions(-)
 rename assets/js/{10.77750a2d.js => 10.f6b81329.js} (97%)
 rename assets/js/{11.33cb6293.js => 11.9ac3cb70.js} (98%)
 rename assets/js/{12.35350910.js => 12.1f7fba77.js} (65%)
 create mode 100644 assets/js/13.22adc26d.js
 rename assets/js/{13.c6563891.js => 14.d81d5cda.js} (65%)
 rename assets/js/{14.68d4bf16.js => 15.16919c51.js} (75%)
 rename assets/js/{15.624060ab.js => 16.51bb3248.js} (99%)
 rename assets/js/{16.98373344.js => 17.b7f86971.js} (97%)
 delete mode 100644 assets/js/18.5d91aa8e.js
 rename assets/js/{17.d6e30535.js => 18.70f3d880.js} (98%)
 create mode 100644 assets/js/19.f6e2da35.js
 rename assets/js/{2.376ba2d2.js => 2.fe45e099.js} (99%)
 rename assets/js/{3.be66625d.js => 3.59af78e9.js} (99%)
 rename assets/js/{4.edcc6dfb.js => 4.8d9a4116.js} (84%)
 rename assets/js/{5.60d5aeca.js => 5.82e3ee5d.js} (65%)
 rename assets/js/{6.579501c9.js => 6.5c8121b9.js} (97%)
 rename assets/js/{7.1d348ae3.js => 7.6c9bc4bb.js} (99%)
 rename assets/js/{8.4849d5b9.js => 8.3aa241bb.js} (65%)
 rename assets/js/{app.8a966a0f.js => app.4fe1b2a9.js} (81%)
 create mode 100644 zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.html



[incubator-skywalking-website] branch master updated: add md 'Apache-SkyWalking-advanced-usage' (#15)

2018-12-21 Thread wusheng
This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 6c8237f  add md 'Apache-SkyWalking-advanced-usage' (#15)
6c8237f is described below

commit 6c8237fb6ccd4563e52733276f702d1394e6f44c
Author: 于玉桔 <769213...@qq.com>
AuthorDate: Fri Dec 21 18:12:18 2018 +0800

add md 'Apache-SkyWalking-advanced-usage' (#15)

* add md '2018-12-18-Apache-SkyWalking-advanced-usage'

* fix tittle order

* optimize the md
---
 .../2018-12-21-SkyWalking-apm-sniffer-beginning.md | 218 +
 docs/zh/blog/README.md |   6 +-
 2 files changed, 223 insertions(+), 1 deletion(-)

diff --git a/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md 
b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
new file mode 100644
index 000..94b34bc
--- /dev/null
+++ b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
@@ -0,0 +1,218 @@
+# SkyWalking apm-sniffer原理学习与插件编写
+
+作者: SkyWalking 兴趣爱好者,赵禹光
+
+# 导读
+ * SkyWalking中Java探针是使用JavaAgent的两大字节码操作工具之一的Byte 
Buddy(另外是Javassist)实现的。项目还包含.Net core和Nodejs自动探针,以及Service Mesh 
Istio的监控。总体上,SkyWalking是一个多语言,多场景的适配,特别为微服务、云原生和基于容器架构设计的可观测性分析平台(Observability 
Analysis Platform)。
+ * 本文基于SkyWalking 5.0.0-RC2和Byte Buddy 1.7.9版本,会从以下几个章节,让大家掌握SkyWalking 
Java探针的使用,进而让SkyWalking在自己公司中的二次开发变得触手可及。
+* Byte Buddy实现JavaAgent项目
+* 迭代JavaAgent项目的方法论
+* SkyWalking agent项目如何Debug
+* SkyWalking插件开发实践
+ * 文章底部有SkyWalking和Byte Buddy相应的学习资源。
+
+# Byte Buddy实现
+
+ * 首先如果你对JavaAgent还不是很了解可以先百度一下,或在公众号内看下《JavaAgent原理与实践》简单入门下。
+ * SpringMVC分发请求的关键方法相信已经不用我在赘述了,那我们来编写Byte Buddy JavaAgent代码吧。
+
+```Java
+ public class AgentMain {
+public static void premain(String agentOps, Instrumentation 
instrumentation) {
+new AgentBuilder.Default()
+
.type(ElementMatchers.named("org.springframework.web.servlet.DispatcherServlet"))
+.transform((builder, type, classLoader, module) ->
+builder.method(ElementMatchers.named("doDispatch"))
+
.intercept(MethodDelegation.to(DoDispatchInterceptor.class)))
+.installOn(instrumentation);
+}
+}
+```
+
+ * 编写DispatcherServlet doDispatch拦截器代码(是不是跟AOP如出一辙)
+ 
+```Java
+ public class DoDispatchInterceptor {
+@RuntimeType
+public static Object intercept(@Argument(0) HttpServletRequest request, 
@SuperCall Callable callable) {
+final StringBuilder in = new StringBuilder();
+if (request.getParameterMap() != null && 
request.getParameterMap().size() > 0) {
+request.getParameterMap().keySet().forEach(key -> in.append("key=" 
+ key + "_value=" + request.getParameter(key) + ","));
+}
+long agentStart = System.currentTimeMillis();
+try {
+return callable.call();
+} catch (Exception e) {
+System.out.println("Exception :" + e.getMessage());
+return null;
+} finally {
+System.out.println("path:" + request.getRequestURI() + " 入参:" + in 
+ " 耗时:" + (System.currentTimeMillis() - agentStart));
+}
+}
+}
+```
+
+ * resources/META-INF/MANIFEST.MF
+ 
+```xml
+Manifest-Version: 1.0
+Premain-Class: com.z.test.agent.AgentMain
+Can-Redefine-Classes: true
+```
+
+ * pom.xml文件
+
+```xml
+dependencies
++net.bytebuddy.byte-buddy 
++javax.servlet.javax.servlet-api *scope=provided
+plugins
++maven-jar-plugin *manifestFile=src/main/resources/META-INF/MANIFEST.MF
++maven-shade-plugin *include:net.bytebuddy:byte-buddy:jar:
++maven-compiler-plugin
+```
+
+ * 小结:没几十行代码就完成了,通过Byte 
Buddy实现应用组件SpringMVC记录请求路径、入参、执行时间JavaAgent项目,是不是觉得自己很优秀。
+ 
+# 持续迭代JavaAgent 
+ * 本章节主要介绍JavaAgent如何Debug,以及持续集成的方法论。
+ * 首先我的JavaAgent项目目录结构如图所示:
+   ![](https://raw.githubusercontent.com/zhaoyuguang/test/master/my-test.png?2)
+ * 应用项目是用几行代码实现的SpringBootWeb项目:
+
+
+```Java
+@SpringBootApplication(scanBasePackages = {"com"})
+public class TestBootWeb {
+public static void main(String[] args) {
+SpringApplication.run(TestBootWeb.class, args);
+}
+@RestController
+public class ApiController {
+@PostMapping("/ping")
+public String ping(HttpServletRequest request) {
+return "pong";
+}
+}
+}
+
+```
+ 
+ * 下面是关键JavaAgent项目如何持续迭代与集成:
+ 
+```xml
+VM 
options增加:-JavaAgent:{$HOME}/Code/github/z_my_test/test-agent/target/test-agent-1.0-SNAPSHOT.jar=args
+Before launch 在Build之前增加:
+Working directory:{$HOME}/Code/github/incubator-skywalking
+Command line:-T 1C -pl test-agent -am clean package -Denforcer.skip=true 
-Dmaven.test.skip=true -Dmaven.compile.fork=true
+```
+
+* 
小结:看到这里的将JavaAgent持续迭代集成方法,是不是瞬间觉得自己手心已经发痒起来,很想编写一个自己的agent项目了呢,等等还有一个好消息:test-demo这10几行的代码实现的Web服务,居然有5k左右的类可以使用agent增强。
+* 注意mvn

[GitHub] wu-sheng closed pull request #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
wu-sheng closed pull request #15: add md 'Apache-SkyWalking-advanced-usage'
URL: https://github.com/apache/incubator-skywalking-website/pull/15
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md 
b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
new file mode 100644
index 000..94b34bc
--- /dev/null
+++ b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
@@ -0,0 +1,218 @@
+# SkyWalking apm-sniffer原理学习与插件编写
+
+作者: SkyWalking 兴趣爱好者,赵禹光
+
+# 导读
+ * SkyWalking中Java探针是使用JavaAgent的两大字节码操作工具之一的Byte 
Buddy(另外是Javassist)实现的。项目还包含.Net core和Nodejs自动探针,以及Service Mesh 
Istio的监控。总体上,SkyWalking是一个多语言,多场景的适配,特别为微服务、云原生和基于容器架构设计的可观测性分析平台(Observability 
Analysis Platform)。
+ * 本文基于SkyWalking 5.0.0-RC2和Byte Buddy 1.7.9版本,会从以下几个章节,让大家掌握SkyWalking 
Java探针的使用,进而让SkyWalking在自己公司中的二次开发变得触手可及。
+* Byte Buddy实现JavaAgent项目
+* 迭代JavaAgent项目的方法论
+* SkyWalking agent项目如何Debug
+* SkyWalking插件开发实践
+ * 文章底部有SkyWalking和Byte Buddy相应的学习资源。
+
+# Byte Buddy实现
+
+ * 首先如果你对JavaAgent还不是很了解可以先百度一下,或在公众号内看下《JavaAgent原理与实践》简单入门下。
+ * SpringMVC分发请求的关键方法相信已经不用我在赘述了,那我们来编写Byte Buddy JavaAgent代码吧。
+
+```Java
+ public class AgentMain {
+public static void premain(String agentOps, Instrumentation 
instrumentation) {
+new AgentBuilder.Default()
+
.type(ElementMatchers.named("org.springframework.web.servlet.DispatcherServlet"))
+.transform((builder, type, classLoader, module) ->
+builder.method(ElementMatchers.named("doDispatch"))
+
.intercept(MethodDelegation.to(DoDispatchInterceptor.class)))
+.installOn(instrumentation);
+}
+}
+```
+
+ * 编写DispatcherServlet doDispatch拦截器代码(是不是跟AOP如出一辙)
+ 
+```Java
+ public class DoDispatchInterceptor {
+@RuntimeType
+public static Object intercept(@Argument(0) HttpServletRequest request, 
@SuperCall Callable callable) {
+final StringBuilder in = new StringBuilder();
+if (request.getParameterMap() != null && 
request.getParameterMap().size() > 0) {
+request.getParameterMap().keySet().forEach(key -> in.append("key=" 
+ key + "_value=" + request.getParameter(key) + ","));
+}
+long agentStart = System.currentTimeMillis();
+try {
+return callable.call();
+} catch (Exception e) {
+System.out.println("Exception :" + e.getMessage());
+return null;
+} finally {
+System.out.println("path:" + request.getRequestURI() + " 入参:" + in 
+ " 耗时:" + (System.currentTimeMillis() - agentStart));
+}
+}
+}
+```
+
+ * resources/META-INF/MANIFEST.MF
+ 
+```xml
+Manifest-Version: 1.0
+Premain-Class: com.z.test.agent.AgentMain
+Can-Redefine-Classes: true
+```
+
+ * pom.xml文件
+
+```xml
+dependencies
++net.bytebuddy.byte-buddy 
++javax.servlet.javax.servlet-api *scope=provided
+plugins
++maven-jar-plugin *manifestFile=src/main/resources/META-INF/MANIFEST.MF
++maven-shade-plugin *include:net.bytebuddy:byte-buddy:jar:
++maven-compiler-plugin
+```
+
+ * 小结:没几十行代码就完成了,通过Byte 
Buddy实现应用组件SpringMVC记录请求路径、入参、执行时间JavaAgent项目,是不是觉得自己很优秀。
+ 
+# 持续迭代JavaAgent 
+ * 本章节主要介绍JavaAgent如何Debug,以及持续集成的方法论。
+ * 首先我的JavaAgent项目目录结构如图所示:
+   ![](https://raw.githubusercontent.com/zhaoyuguang/test/master/my-test.png?2)
+ * 应用项目是用几行代码实现的SpringBootWeb项目:
+
+
+```Java
+@SpringBootApplication(scanBasePackages = {"com"})
+public class TestBootWeb {
+public static void main(String[] args) {
+SpringApplication.run(TestBootWeb.class, args);
+}
+@RestController
+public class ApiController {
+@PostMapping("/ping")
+public String ping(HttpServletRequest request) {
+return "pong";
+}
+}
+}
+
+```
+ 
+ * 下面是关键JavaAgent项目如何持续迭代与集成:
+ 
+```xml
+VM 
options增加:-JavaAgent:{$HOME}/Code/github/z_my_test/test-agent/target/test-agent-1.0-SNAPSHOT.jar=args
+Before launch 在Build之前增加:
+Working directory:{$HOME}/Code/github/incubator-skywalking
+Command line:-T 1C -pl test-agent -am clean package -Denforcer.skip=true 
-Dmaven.test.skip=true -Dmaven.compile.fork=true
+```
+
+* 
小结:看到这里的将JavaAgent持续迭代集成方法,是不是瞬间觉得自己手心已经发痒起来,很想编写一个自己的agent项目了呢,等等还有一个好消息:test-demo这10几行的代码实现的Web服务,居然有5k左右的类可以使用agent增强。
+* 注意mvn编译加速的命令是maven3+版本以上才支持的哈。
+
+# SkyWalking Debug
+ * 
峰回路转,到了文章的主题《SkyWalking之高级用法》的正文啦。首先,JavaAgent项目想Debug,还需要将agent代码与接入agent项目至少在同一个工作空间内,网上方法有很多,这里我推荐大家一个最简单的方法。File->New->Module
 from Exisiting Sources...引入skywalking-agent源码即可
+![](https://raw.githubusercontent.com/zhaoyuguang/test/master/import.png)
+ * 详细的idea编辑器配置:
+![](https://raw.githubusercontent.com/zhaoyuguang/test/master/boot-one.png)
+ * 优化SkyWalking agent编译时间,我

[GitHub] zhaoyuguang opened a new pull request #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
zhaoyuguang opened a new pull request #15: add md 
'Apache-SkyWalking-advanced-usage'
URL: https://github.com/apache/incubator-skywalking-website/pull/15
 
 
   menu:
   
![image](https://user-images.githubusercontent.com/10150229/50332959-b425d400-053e-11e9-9ea1-66dc7d14e9ac.png)
   detail:
   
![image](https://user-images.githubusercontent.com/10150229/50332983-c7d13a80-053e-11e9-89f4-778188490235.png)
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'
URL: 
https://github.com/apache/incubator-skywalking-website/pull/15#issuecomment-449343624
 
 
   Why close?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] zhaoyuguang commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
zhaoyuguang commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'
URL: 
https://github.com/apache/incubator-skywalking-website/pull/15#issuecomment-449343316
 
 
   ok 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] zhaoyuguang closed pull request #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
zhaoyuguang closed pull request #15: add md 'Apache-SkyWalking-advanced-usage'
URL: https://github.com/apache/incubator-skywalking-website/pull/15
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md 
b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
new file mode 100644
index 000..94b34bc
--- /dev/null
+++ b/docs/zh/blog/2018-12-21-SkyWalking-apm-sniffer-beginning.md
@@ -0,0 +1,218 @@
+# SkyWalking apm-sniffer原理学习与插件编写
+
+作者: SkyWalking 兴趣爱好者,赵禹光
+
+# 导读
+ * SkyWalking中Java探针是使用JavaAgent的两大字节码操作工具之一的Byte 
Buddy(另外是Javassist)实现的。项目还包含.Net core和Nodejs自动探针,以及Service Mesh 
Istio的监控。总体上,SkyWalking是一个多语言,多场景的适配,特别为微服务、云原生和基于容器架构设计的可观测性分析平台(Observability 
Analysis Platform)。
+ * 本文基于SkyWalking 5.0.0-RC2和Byte Buddy 1.7.9版本,会从以下几个章节,让大家掌握SkyWalking 
Java探针的使用,进而让SkyWalking在自己公司中的二次开发变得触手可及。
+* Byte Buddy实现JavaAgent项目
+* 迭代JavaAgent项目的方法论
+* SkyWalking agent项目如何Debug
+* SkyWalking插件开发实践
+ * 文章底部有SkyWalking和Byte Buddy相应的学习资源。
+
+# Byte Buddy实现
+
+ * 首先如果你对JavaAgent还不是很了解可以先百度一下,或在公众号内看下《JavaAgent原理与实践》简单入门下。
+ * SpringMVC分发请求的关键方法相信已经不用我在赘述了,那我们来编写Byte Buddy JavaAgent代码吧。
+
+```Java
+ public class AgentMain {
+public static void premain(String agentOps, Instrumentation 
instrumentation) {
+new AgentBuilder.Default()
+
.type(ElementMatchers.named("org.springframework.web.servlet.DispatcherServlet"))
+.transform((builder, type, classLoader, module) ->
+builder.method(ElementMatchers.named("doDispatch"))
+
.intercept(MethodDelegation.to(DoDispatchInterceptor.class)))
+.installOn(instrumentation);
+}
+}
+```
+
+ * 编写DispatcherServlet doDispatch拦截器代码(是不是跟AOP如出一辙)
+ 
+```Java
+ public class DoDispatchInterceptor {
+@RuntimeType
+public static Object intercept(@Argument(0) HttpServletRequest request, 
@SuperCall Callable callable) {
+final StringBuilder in = new StringBuilder();
+if (request.getParameterMap() != null && 
request.getParameterMap().size() > 0) {
+request.getParameterMap().keySet().forEach(key -> in.append("key=" 
+ key + "_value=" + request.getParameter(key) + ","));
+}
+long agentStart = System.currentTimeMillis();
+try {
+return callable.call();
+} catch (Exception e) {
+System.out.println("Exception :" + e.getMessage());
+return null;
+} finally {
+System.out.println("path:" + request.getRequestURI() + " 入参:" + in 
+ " 耗时:" + (System.currentTimeMillis() - agentStart));
+}
+}
+}
+```
+
+ * resources/META-INF/MANIFEST.MF
+ 
+```xml
+Manifest-Version: 1.0
+Premain-Class: com.z.test.agent.AgentMain
+Can-Redefine-Classes: true
+```
+
+ * pom.xml文件
+
+```xml
+dependencies
++net.bytebuddy.byte-buddy 
++javax.servlet.javax.servlet-api *scope=provided
+plugins
++maven-jar-plugin *manifestFile=src/main/resources/META-INF/MANIFEST.MF
++maven-shade-plugin *include:net.bytebuddy:byte-buddy:jar:
++maven-compiler-plugin
+```
+
+ * 小结:没几十行代码就完成了,通过Byte 
Buddy实现应用组件SpringMVC记录请求路径、入参、执行时间JavaAgent项目,是不是觉得自己很优秀。
+ 
+# 持续迭代JavaAgent 
+ * 本章节主要介绍JavaAgent如何Debug,以及持续集成的方法论。
+ * 首先我的JavaAgent项目目录结构如图所示:
+   ![](https://raw.githubusercontent.com/zhaoyuguang/test/master/my-test.png?2)
+ * 应用项目是用几行代码实现的SpringBootWeb项目:
+
+
+```Java
+@SpringBootApplication(scanBasePackages = {"com"})
+public class TestBootWeb {
+public static void main(String[] args) {
+SpringApplication.run(TestBootWeb.class, args);
+}
+@RestController
+public class ApiController {
+@PostMapping("/ping")
+public String ping(HttpServletRequest request) {
+return "pong";
+}
+}
+}
+
+```
+ 
+ * 下面是关键JavaAgent项目如何持续迭代与集成:
+ 
+```xml
+VM 
options增加:-JavaAgent:{$HOME}/Code/github/z_my_test/test-agent/target/test-agent-1.0-SNAPSHOT.jar=args
+Before launch 在Build之前增加:
+Working directory:{$HOME}/Code/github/incubator-skywalking
+Command line:-T 1C -pl test-agent -am clean package -Denforcer.skip=true 
-Dmaven.test.skip=true -Dmaven.compile.fork=true
+```
+
+* 
小结:看到这里的将JavaAgent持续迭代集成方法,是不是瞬间觉得自己手心已经发痒起来,很想编写一个自己的agent项目了呢,等等还有一个好消息:test-demo这10几行的代码实现的Web服务,居然有5k左右的类可以使用agent增强。
+* 注意mvn编译加速的命令是maven3+版本以上才支持的哈。
+
+# SkyWalking Debug
+ * 
峰回路转,到了文章的主题《SkyWalking之高级用法》的正文啦。首先,JavaAgent项目想Debug,还需要将agent代码与接入agent项目至少在同一个工作空间内,网上方法有很多,这里我推荐大家一个最简单的方法。File->New->Module
 from Exisiting Sources...引入skywalking-agent源码即可
+![](https://raw.githubusercontent.com/zhaoyuguang/test/master/import.png)
+ * 详细的idea编辑器配置:
+![](https://raw.githubusercontent.com/zhaoyuguang/test/master/boot-one.png)
+ * 优化SkyWalking agent编译时

[GitHub] wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
wu-sheng commented on issue #15: add md 'Apache-SkyWalking-advanced-usage'
URL: 
https://github.com/apache/incubator-skywalking-website/pull/15#issuecomment-449325679
 
 
   Also could you rename `the advanced usage` to more explicit name? Which kind 
of advance?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] zhaoyuguang opened a new pull request #15: add md 'Apache-SkyWalking-advanced-usage'

2018-12-21 Thread GitBox
zhaoyuguang opened a new pull request #15: add md 
'Apache-SkyWalking-advanced-usage'
URL: https://github.com/apache/incubator-skywalking-website/pull/15
 
 
   menu:
   
![image](https://user-images.githubusercontent.com/10150229/50332959-b425d400-053e-11e9-9ea1-66dc7d14e9ac.png)
   detail:
   
![image](https://user-images.githubusercontent.com/10150229/50332983-c7d13a80-053e-11e9-89f4-778188490235.png)
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services