This is an automated email from the ASF dual-hosted git repository. wujimin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git
commit 3a21eb309be61e1716430be1875b45cbb7f244b3 Author: yaohaishi <[email protected]> AuthorDate: Thu Jan 4 15:28:20 2018 +0800 [JAV-587] fix CI error --- .../java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java b/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java index 91b4b43..f3e066d 100644 --- a/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java +++ b/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java @@ -20,10 +20,12 @@ package io.servicecomb.demo.pojo.test.endpoints; import java.util.Arrays; import java.util.List; +import io.servicecomb.core.Const; import io.servicecomb.demo.server.Test; import io.servicecomb.demo.server.TestRequest; import io.servicecomb.demo.server.User; import io.servicecomb.provider.pojo.RpcSchema; +import io.servicecomb.swagger.invocation.context.ContextUtils; import io.servicecomb.swagger.invocation.exception.InvocationException; @RpcSchema(schemaId = "server") @@ -99,4 +101,9 @@ public class TestImpl implements Test { System.out.println("addString: " + result); return result; } + + @Override + public String testTraceId() { + return ContextUtils.getInvocationContext().getContext(Const.TRACE_ID_NAME); + } } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
