Distributed traces across AWS services are not connected

オープン
#1,787 コメント 31 件 リアクション 3 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@wpessers がすでに取り組んでいます。

2025年6月4日 から。

評価

この issue はまだ評価されていません。

説明

bug

Describe the bug
We are using SQS and EventBridge to call services on AWS. However, when a service on lambda sends a message to another service on Lambda using SQS the spans are not connected. Trace on lambda becomes the parent.

Steps to reproduce
Run service 1 on lambda and send SQS message that is consumed by service 2.

What did you expect to see?
Service 1 should show up in the trace.

What did you see instead?
Only service 2 shows up

What version of collector/language SDK version did you use?
Version: latest collector and otel layers on lambda.

What language layer did you use?
Nodejs

Additional context
OTEL_PROPAGATORS are set to tracecontext,baggage,xray. Backend is Tempo.
Is there something I am missing?
I can see traceheader in the message attributes

"attributes": {
                    "ApproximateReceiveCount": "1",
                    "AWSTraceHeader": "Root=1-6808be41-c7d04735710d987017e5ec88;Parent=371ec507158784ee;Sampled=0;Lineage=240:e7ff9e16:238",
                    "SentTimestamp": "1745403457578",
                    "SenderId": "id",
                    "ApproximateFirstReceiveTimestamp": "1745403457579"
                },

Is it because I need sqsExtractContextPropagationFromPayload enabled? How could I do that without creating my own custom instrumentation layer?

主要言語
Go
スター
433
フォーク
249
平均マージ
1日 12時間
マージ済み PR(30日)
39

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-telemetry/opentelemetry-lambda のほかの issue

open-telemetry/opentelemetry-lambda の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。