Open
Description
Description
When I use the microservices system hotelReservations ( https://github.com/[TanYuzhen/hotelReservation](https://github.com/TanYuzhen/hotelReservation )
, and send a request as below:
#!/usr/bin/env bash
IN_DATE="2015-04-12"
OUT_DATE="2015-04-15"
LAT="38.0235"
LON="-122.095"
curl -v -X GET "http://10.106.122.121:5000/hotels?inDate=${IN_DATE}&outDate=${OUT_DATE}&lat=${LAT}&lon=${LON}"
And I get the trace of the request shown as below:
Because the original of the hotelReservations microservices
uses the opentracing SDK, I change it to use the opentelemetry SDK. However, the parent-child relationship is missing as the photo shows.
Environment
- OS: Ubuntu22.04
- Architecture: x86
- Go Version: 1.24
- opentelemetry-go version: v1.36.0
Steps To Reproduce
- Use the microservices 'https://github.com/TanYuzhen/hotelReservation'
- Send the request , get the trace as the photo shows
- See error
Expected behavior
I want the search service, profile service is the children of frontend service, and the geo service, rate service is the children of search service.
How to fix that in my code?