Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kworkbee opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working needs author feedback Waiting for additional feedback from the author needs triage New issue that requires triage stale

Comments

@kworkbee
Copy link

kworkbee commented Dec 5, 2024

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

@kworkbee kworkbee added bug Something isn't working needs triage New issue that requires triage labels Dec 5, 2024
@laurit
Copy link
Contributor

laurit commented Dec 5, 2024

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

Does this mean that some services work as expected while others don't?
Could you provide a minimal application that reproduces your issue.

@laurit laurit added the needs author feedback Waiting for additional feedback from the author label Dec 5, 2024
@kworkbee
Copy link
Author

kworkbee commented Dec 10, 2024

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

Does this mean that some services work as expected while others don't? Could you provide a minimal application that reproduces your issue.

Hi @laurit, Sorry for late response.

As you mentioned, it is a phenomenon in which traces are created individually for some services in requests from the same gateway to other services.

As it is a business application, there are parts where it is impossible to share source code directly due to security risks, so we tried to reproduce it in the same environment, but now it is not going as intended.

Originally, it was an application that delivers trace directly to Zipkin via B3 Propagation internally, but it seems to be reproduced even though we removed the current dependency.

@github-actions github-actions bot removed the needs author feedback Waiting for additional feedback from the author label Dec 10, 2024
@kworkbee kworkbee changed the title Traces for specific services are not properly connected while calling internal services through Spring Cloud Gateway Traces for specific services are not properly connected while calling internal services through Spring Cloud Gateway (Root Span Missing) Dec 10, 2024
@laurit
Copy link
Contributor

laurit commented Dec 10, 2024

As it is a business application, there are parts where it is impossible to share source code directly due to security risks, so we tried to reproduce it in the same environment, but now it is not going as intended.

We do not want the source code of your application. We are asking for a minimal sample application that reproduces the issue. To fix the issue ideally we need some way to reproduce it so we could get a better understanding what causes the problem.

Originally, it was an application that delivers trace directly to Zipkin via B3 Propagation internally, but it seems to be reproduced even though we removed the current dependency.

I don't follow this.

@laurit laurit added the needs author feedback Waiting for additional feedback from the author label Dec 10, 2024
Copy link
Contributor

This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment.

@github-actions github-actions bot added the stale label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs author feedback Waiting for additional feedback from the author needs triage New issue that requires triage stale
Projects
None yet
Development

No branches or pull requests

2 participants