Skip to content

The parent-child relationship miss #6893

Open
@TanYuzhen

Description

@TanYuzhen

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:

Image

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

  1. Use the microservices 'https://github.com/TanYuzhen/hotelReservation'
  2. Send the request , get the trace as the photo shows
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions