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

sqsExtractContextPropagationFromPayload doesn't seem to work as expected #2135

Open
arun0009 opened this issue Apr 21, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@arun0009
Copy link

arun0009 commented Apr 21, 2024

What version of OpenTelemetry are you using?

    "@opentelemetry/api": "^1.8.0",
    "@opentelemetry/auto-instrumentations-node": "^0.44.0",
    "@opentelemetry/core": "^1.23.0",
    "@opentelemetry/exporter-trace-otlp-proto": "^0.50.0",
    "@opentelemetry/instrumentation-express": "^0.37.0",
    "@opentelemetry/sdk-metrics": "^1.23.0",
    "@opentelemetry/sdk-node": "^0.50.0",
    "@opentelemetry/sdk-trace-node": "^1.23.0",

What version of Node are you using?

❯ node -v
v20.11.1

What did you do?

I created a repo to reference this issue.

In otel.ts I have sqsExtractContextPropagationFromPayload: true under AwsInstrumentation. I have 2 endpoints /send which sends a message to SQS and another endpoint /receive which pulls message from SQS and makes a http call before deleting the message from queue.

I assume since its extracting traceParent from MessageAttributes while receiving message it should set that as parent trace and add any spans to it (in /receive)? However, I see no updates to /send trace (had 3 spans after sending a message to sqs and it didn't update after calling /receive)?

I see a link on /receive trace to /send trace but I see that regardless of sqsExtractContextPropagationFromPayload being true or false. (see image #3).

Jaeger Main Page:

image

/send Trace Details

image

/receive Trace Details image

What did you expect to see?

Spans to be added to original trace i.e. /send but I don't see any spans being added to send trace after calling receive.

What did you see instead?

see my details above.

Additional context

@arun0009 arun0009 added the bug Something isn't working label Apr 21, 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
Projects
None yet
Development

No branches or pull requests

1 participant