Skip to content

Traces for specific services are not properly connected while calling internal services through Spring Cloud Gateway (Root Span Missing) #12836

@kworkbee

Description

@kworkbee

Describe the bug

Traces for specific services are not properly connected while calling internal services through Spring Cloud Gateway

As a result, Root Span is missing.

Steps to reproduce

Inject OpenTelemetry JavaAgent into Gateway and each services

Expected behavior

A normal connection of the trace along the route through the service

Screenshot 2024-12-05 16 41 35

Actual behavior

Determine what happens when certain applications are separated into two traces

Screenshot 2024-12-05 14 19 33 Screenshot 2024-12-05 16 26 56

Javaagent or library instrumentation version

2.10.0

Environment

JDK: Adoptium Temurin 17
OS: AL2023 (Amazon Linux, Kubernetes)

Gateway : Spring Cloud Gateway (Boot 3.1.5 / Cloud 2023.0.4)
Services:

  • For service that work as intended : Boot 3.3.4
  • For service that do not work as intended : Boot 2.6.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds author feedbackWaiting for additional feedback from the authorneeds triageNew issue that requires triagestale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions