@sohamganatra5mo ago
@copilot correct the linting issue
ENABLE_LANGSMITH env var to opt-in if ever neededDatadog trace analysis revealed 188 occurrences of:
Agent '{}' completed without result metadata - usage metrics will not be recorded
Root cause: LangSmith was configured at module import and intercepted the Claude SDK stream. It failed with:
ModuleNotFoundError: No module named 'langsmith.integrations.claude_agent_sdk._usage'
This prevented ResultMessage from flowing through to the Datadog tracer, so _process_result_message() was never called and usage metrics were lost.
lvdryagv (from PR #7787)ENABLE_LANGSMITH=true to re-enable if needed🤖 Generated with Claude Code
@copilot correct the linting issue
@sohamganatra I've opened a new pull request, #782, to work on those changes. Once the pull request is ready, I'll request review from you.