You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/05/04 13:54:33 UTC
[GitHub] [skywalking] makefriend8 opened a new issue #6893: Can Spring RestTemplate work?
makefriend8 opened a new issue #6893:
URL: https://github.com/apache/skywalking/issues/6893
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [ *] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Bug
- Which version of SkyWalking, OS, and JRE?
SkyWalking master windows openjdk version "1.8.0_242"
- What happened?
code is very simple
```
@SpringBootApplication
public class MessagingStompWebsocketApplication {
public static void main(String[] args) {
RestTemplate restTemplate=new RestTemplate();
String result = restTemplate.getForObject("http://192.168.2.333:8080/", String.class);
System.out.println(result);
}
}
```
and I run
```
java -jar build/libs/myjar.jar -javaagent:skywalking-agent.jar
```
I user wireshark to catch the packet.The result is right, But no http head sw8 is added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] makefriend8 commented on issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
makefriend8 commented on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-832003538
Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6893:
URL: https://github.com/apache/skywalking/issues/6893
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] makefriend8 commented on issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
makefriend8 commented on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-831985395
I use https://github.com/spring-guides/gs-spring-boot.git
and
```
@RestController
public class HelloController {
@RequestMapping("/")
public String index() {
RestTemplate restTemplate=new RestTemplate();
String result = restTemplate.getForObject("http://192.168.2.333:8080/", String.class);
System.out.println(result);
return "Greetings from Spring Boot!";
}
}
```
and everthing is the same.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] makefriend8 edited a comment on issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
makefriend8 edited a comment on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-831985395
I use https://github.com/spring-guides/gs-spring-boot.git
and
```
@RestController
public class HelloController {
@RequestMapping("/")
public String index() {
RestTemplate restTemplate=new RestTemplate();
String result = restTemplate.getForObject("http://192.168.2.333:8080/", String.class);
System.out.println(result);
return "Greetings from Spring Boot!";
}
}
```
and everthing is the same. Is there any requirement for one service to call another?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-832001204
We wouldn't debug your codes for you if you want to find our test codes, they ar here, https://github.com/apache/skywalking/tree/master/test/plugin/scenarios
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6893: Can Spring RestTemplate work?
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-831965756
Read at least the first line of the introduction.
>SkyWalking: an APM(application performance monitor) system, especially designed for microservices, cloud native and container-based architectures.
You are not running a service at all.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org