https://github.com/eitansuez/dtrace-boot3-example
Trying to get trace propagation to work with Spring Boot 3.0 - example project
https://github.com/eitansuez/dtrace-boot3-example
Last synced: about 1 month ago
JSON representation
Trying to get trace propagation to work with Spring Boot 3.0 - example project
- Host: GitHub
- URL: https://github.com/eitansuez/dtrace-boot3-example
- Owner: eitansuez
- Created: 2022-12-09T19:26:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T16:16:41.000Z (over 3 years ago)
- Last Synced: 2025-02-26T01:27:20.630Z (over 1 year ago)
- Language: Java
- Size: 70.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Question:
_How do I propagate a request headers upstream to other services (for distributed tracing)?_
# Automated Test
Run the test `DemoApplicationTests`.
```shell
gradle test
```
# Manual test:
1. In one shell, run:
```shell
gradle bootRun
```
1. Then, in a separate shell:
```shell
curl localhost:8080/ -H "x-request-id: world"
```
The response should state: `Hello, requestId is: world`
But instead it states: `Hello, requestId is: null`
Clearly, I'm doing something wrong. But what?