# Traces not linked across AWS lambdas

**URL:** <https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853>\
**Category:** OpenTelemetry\
**Tags:** aws, opentelemetry, distributed-tracing, oneagent\
**Created:** [May 28, 2025, 9:47am UTC](https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853 "2025-05-28T09:47:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DamianJankowski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/damianjankowski/32/10540_2.png) [@DamianJankowski](https://community.dynatrace.com/u/DamianJankowski)\
**Post date:** [May 28, 2025, 9:47am UTC](https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853/1 "2025-05-28T09:47:51Z")

</div>

Hi,

I’m working on an AWS setup with otel. Here’s a quick overview of my architecture:

```markup
Postman (with traceparent header)
→ API Gateway
→ Lambda (1)
→ EventBridge
→ Lambda (2)

```

Each Lambda uses the Dynatrace Lambda Layer for auto-instrumentation.

When I trigger the full flow — meaning the request goes through the entire setup — separate traces are created for each Lambda function. They’re not connected into a single, end-to-end trace.

I’ve tried adding manual Span Links. In the lambda 1, I can see the full path:  
API Gateway → Lambda 1 → EventBridge → Lambda 2.  
However, the lambda 2 always shows up as a new root trace (just labeled as “invoked”).

I also disabled the default Dynatrace integration using DT\_OPEN\_TELEMETRY\_ENABLE\_INTEGRATION=false and manually propagated the traceparent header, hoping to gain full control. But the traces are still not connected.

Has anyone deal with that kind of issue?&nbsp;Any help or tips would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [May 28, 2025, 12:33pm UTC](https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853/2 "2025-05-28T12:33:22Z")

</div>

Are you invoking Lambda2 directly from Lambda1 (via hTTP), or are you sending an event to EventBridge and then triggering invocation of Lambda2 via event? I believe this question is important because the documentation for [tracing Lambda](https://docs.dynatrace.com/docs/ingest-from/amazon-web-services/integrate-into-aws/aws-lambda-integration/aws-lambda-extension#known-limitations) functions only seems to mention HTTP requests as a method for tracing across multiple Lambda functions.

---

<div class="post-metadata">

**Author:** ![DamianJankowski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/damianjankowski/32/10540_2.png) [@DamianJankowski](https://community.dynatrace.com/u/DamianJankowski)\
**Post date:** [May 30, 2025, 8:17am UTC](https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853/3 "2025-05-30T08:17:53Z")

</div>

Hi,

I am not invoking lambda 2 directly from lambda 1. Instead lambda 1 publish event to event bridge which is consumed by lambda 2.

Yep, trace context is not automatically propagate when I am using async service like event bridge, but the case here is that also work strange when i am trying different approach which should works, so&nbsp;I’ve tried adding manual Span Links. In the lambda 1, I can see the full path:&nbsp;API Gateway → Lambda 1 → EventBridge → Lambda 2.&nbsp;However, the lambda 2 always shows up as a new root trace (just labeled as “invoked”).

 ![Screenshot 2025-05-30 at 10.10.18.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ee069bc03271dbb50b0735fe1008147ebcb38059.png)

so you can get the e2e trace,&nbsp;but when you look at lambda 2 in isolation, there’s no context — and that’s not great.&nbsp;Even with manual propagation of traceparent, dynatrace doesn’t stitch everything into one distributed trace — the functions still appear disconnected.

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [December 30, 2025, 4:21pm UTC](https://community.dynatrace.com/t/traces-not-linked-across-aws-lambdas/51853/4 "2025-12-30T16:21:25Z")

</div>

Hi&nbsp;[@DamianJankowski](https://community.dynatrace.com/user/72928)!&nbsp;Were you able to find a solution to this problem?
