Questions about Tracing Sub-segments in Private API Using Lambda PowerTools #3279
Closed
jaeyoung0509
started this conversation in
General
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 APILambda 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 serviceI'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.
All reactions