Skip to content

Extract langsmith provider name#1720

Merged
alexmojaki merged 2 commits intomainfrom
alex/langsmith-provider
Feb 19, 2026
Merged

Extract langsmith provider name#1720
alexmojaki merged 2 commits intomainfrom
alex/langsmith-provider

Conversation

@alexmojaki
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 397915f
Status: ✅  Deploy successful!
Preview URL: https://20fb1a9d.logfire-docs.pages.dev
Branch Preview URL: https://alex-langsmith-provider.logfire-docs.pages.dev

View logs

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

elif actual_system == 'langchain':
system = attributes.get('gen_ai.system')
if system in (None, 'langchain'):
system = attributes.get('langsmith.metadata.ls_provider') or guess_system(request_model)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 No test coverage for langsmith.metadata.ls_provider attribute

The new langsmith.metadata.ls_provider extraction at line 403 is the main feature of this PR, but none of the test cases in test_claude_sdk.py or test_langchain.py include this attribute in their input data. All existing tests exercise the guess_system(request_model) fallback path or the case where gen_ai.system is already valid. A test with langsmith.metadata.ls_provider set (and gen_ai.system as None or 'langchain') would confirm the primary new behavior works end-to-end.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@alexmojaki alexmojaki enabled auto-merge (squash) February 19, 2026 15:04
@alexmojaki alexmojaki merged commit dd0aa23 into main Feb 19, 2026
16 checks passed
@alexmojaki alexmojaki deleted the alex/langsmith-provider branch February 19, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant