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

Same TraceID/Spans repeated Multiple Times in Java OTEL Agent #813

Open
sanjyoth opened this issue Jul 24, 2023 · 3 comments
Open

Same TraceID/Spans repeated Multiple Times in Java OTEL Agent #813

sanjyoth opened this issue Jul 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@sanjyoth
Copy link

Describe the bug
We are using AWS Java Lambda along with otel lambda ARN arn:aws:lambda:us-east-1:184161586896:layer:opentelemetry-javaagent-0_1_0:1 to auto instrument the application flow. Whenever lambda is triggered we are seeing same traceid and corresponding spans being sent multiple times to collector, in our case atleast 3 times which is an issue for us.

For example:
Jul 19 17:21:10 ip-xx.ec2.internal otelcol[567034]: Trace ID : 2c2448453e8bb55f9aff1fc984d19c2b
Jul 19 17:21:11 ip-xx.ec2.internal otelcol[567034]: Trace ID : 2c2448453e8bb55f9aff1fc984d19c2b
Jul 19 17:21:11 ip-xx.ec2.internal otelcol[567034]: Trace ID : 2c2448453e8bb55f9aff1fc984d19c2b

Steps to reproduce
Its a Spring Boot application having outbound calls to couple of other aws services like secrets, dynamodb

What did you expect to see?
We were expecting to see 1 traceId and its corresponding spans only once

What did you see instead?
We are seeing 3 calls being triggered every time lambda is triggered

What version of collector/language SDK version did you use?
(arn:aws:lambda:us-east-1:184161586896:layer:opentelemetry-javaagent-0_1_0:1)

What language layer did you use?
Java - Spring boot App

Additional context
We saw x-ray was enabled in AWS Lambda, we did try to disable and run the same app but still the issue persists

@sanjyoth sanjyoth added the bug Something isn't working label Jul 24, 2023
@ajaynagariya
Copy link

Hi SIG/OTEL team

Please review this issue with priority and help in getting resolution as this issue causing a great impact to one of our big enterprise customer.

Your priority intervention is much appreciated!

@ajaynagariya
Copy link

@vasireddy99 , @codeboten , @svrnm

Need your attention and assistance on this

@serkan-ozal
Copy link
Contributor

Hi @sanjyoth @ajaynagariya I am happy to help on this issue.
How do you deploy your Spring boot app into AWS Lambda?
Is it possible to share a sample project to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants