Skip to content

Feat(syllabus) langsmith syllabus tracking - #308

Merged
jmsevin merged 16 commits into
mainfrom
feat(syllabus)--langsmith-syllabus-tracking
Nov 30, 2026
Merged

jmsevin merged 16 commits into
mainfrom
feat(syllabus)--langsmith-syllabus-tracking

Conversation

@jmsevin

@jmsevin jmsevin commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements and refactorings centered around tracing, logging, and configuration for LangSmith integration. The most significant changes include the removal of the TraceComponent and TraceName enums in favor of using string literals for trace names, the addition of the new LANGSMITH_TRACING_V2 environment variable across environments, and enhanced logging and tracing metadata for tutor-related services. These updates simplify code, improve traceability, and provide richer context for monitoring and debugging.

Tracing and Logging Refactorings:

  • Removed the TraceComponent and TraceName enums from src/app/shared/infra/tracing.py and replaced their usage with string literals throughout the codebase to simplify trace naming and reduce indirection. [1] [2] [3] [4] [5]

  • Enhanced tutor service tracing and logging:

    • Added richer metadata to LangSmith traces, including schema names and input character counts for file extraction and structured calls. [1] [2]
    • Improved logging for successful structured calls and file extractions, providing more actionable information in logs. [1] [2]
    • Added a new traceable decorator for syllabus generation.

Configuration Updates:

  • Introduced the LANGSMITH_TRACING_V2 environment variable in .env.example, pytest.ini, and all Kubernetes environment values files to enable the new tracing version across all environments. [1] [2] [3] [4] [5]

Code Cleanup:

  • Removed unused imports of TraceComponent and TraceName from various modules, aligning with the new tracing approach. [1] [2] [3] [4]

These changes collectively streamline tracing, improve observability, and prepare the codebase for enhanced monitoring with LangSmith.

@jmsevin
jmsevin merged commit abc1c31 into main Nov 30, 2026
4 checks passed
@jmsevin
jmsevin deleted the feat(syllabus)--langsmith-syllabus-tracking branch November 30, 2026 10:25
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.

2 participants