Opens a Datadog/OTel span (always, unless component:ai is disabled) and, when LangSmith tracing is enabled, a root LangSmith run that flushes pending batches before returning so traces are not dropped when a serverless function exits.
component:ai
Opens a Datadog/OTel span (always, unless
component:aiis disabled) and, when LangSmith tracing is enabled, a root LangSmith run that flushes pending batches before returning so traces are not dropped when a serverless function exits.