-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hello, in the context of using ADOT for a Lambda function, is it possible to create a separate trace from the Lambda trace?
I am running LangChain in a Lambda function and LangChain has many many components to perform all the actions the AI agent needs to do to answer the user question and I want to trace the details. I don't want to just trace the services but all the LangChain inner steps.
Using the X-Ray tracer, I patch myself all the LangChain Runnables to start a subsegment on their invoke() method and I have a result as follow.
That is all good but I also want the graphical "service map" view of that. This is not possible with the default X-Ray SDK since you can't create new segments inside Lambda. So I was wondering if using the ADOT framework, I could create a completely separate "LangChain" trace (essentially having the service trace and LangChain trace separate, treating LangChain as a separate application)?
I tried to create a separate "adot tracer" with a new context and add new spans for all LangChain Runnables but it doesn't work.
Is there a way to do this in Lambda?