[Trace JS functions in serverless environments | 🦜️🛠️ LangSmith](https://docs.smith.langchain.com/observability/how_to_guides/serverless_environments): LLM should read this page when tracing JavaScript functions in serverless environments, ensuring tracing data is flushed before function completion, handling high concurrency scenarios. This page covers how to trace JavaScript functions in serverless environments using the LangSmith JS SDK, including setting environment variables, awaiting pending trace batches, handling rate limits at high concurrency, and manually flushing tracing data.

