Questions about Tracing Sub-segments in Private API Using Lambda PowerTools #3279
Replies: 1 comment
-
Hello @jaeyoung0509! Firstly, sorry for the late response, we normally respond in less than 1 day but this was an unusual week where we missed some responses on time. Let me see if I understand your user case: Do you think you can draw a flow diagram or send some snippets/screenshots? This would make my understanding easier. Thank you so much and I will put this discussion in my priorities. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, I've been effectively using Lambda PowerTools for my serverless development.
In my setup, I have a Lambda service that acts as an API Gateway
Public API
, and beyond that, there's aPrivate API
Lambda which carries out the actual logic.I aim to trace the request flow as:
request -> public API Lambda(*root segement)-> private API Lambda(*sub segment) -> aws service
I've perused the documentation and noted that using powertools.trace automatically generates a trace header. I can forward this header to the private API Lambda. However, I'm uncertain about how to register a sub-segment for this private API Lambda.
Beta Was this translation helpful? Give feedback.
All reactions