Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonatan-ivanov/sleuth-gh-1659
https://github.com/spring-cloud/spring-cloud-sleuth/issues/1659
https://github.com/jonatan-ivanov/sleuth-gh-1659
Last synced: 9 days ago
JSON representation
https://github.com/spring-cloud/spring-cloud-sleuth/issues/1659
- Host: GitHub
- URL: https://github.com/jonatan-ivanov/sleuth-gh-1659
- Owner: jonatan-ivanov
- Created: 2020-12-23T00:42:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-24T18:55:23.000Z (about 4 years ago)
- Last Synced: 2025-01-06T14:56:37.061Z (12 days ago)
- Language: Java
- Size: 51.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
== Sample App
This sample demonstrates https://github.com/spring-cloud/spring-cloud-sleuth/issues/1659
Run the application and use curl to send some data:
- `$ curl -X POST http://localhost:8080/send/foo/bar`
- `$ curl -X POST http://localhost:8080/send/foo/fail`On the happy path, you should see that the service received the data from Kafka and also the tracing information (`[demo-app,dea43b6ce822e2ff,aa28106d91799038]`):
```
2020-12-22 16:45:38.575 INFO [demo-app,dea43b6ce822e2ff,aa28106d91799038] 2048 --- [ fooGroup-0-C-1] com.example.Application : Received: bar
```On the not-so-happy path, you can see the same received message again with the tracing information as well as the error that does not contain the tracing information (`[demo-app,,]`):
```
2020-12-22 16:46:09.091 INFO [demo-app,38492c66b8d422bd,e65898a131f51dd3] 2048 --- [ fooGroup-0-C-1] com.example.Application : Received: fail
2020-12-22 16:46:09.092 ERROR [demo-app,,] 2048 --- [ fooGroup-0-C-1] essageListenerContainer$ListenerConsumer : Error handler threw an exception
...
```