Skip to content

phase 1 and 2 for Tracing#53

Merged
rcholic merged 6 commits intomainfrom
tracer_support
Dec 27, 2025
Merged

phase 1 and 2 for Tracing#53
rcholic merged 6 commits intomainfrom
tracer_support

Conversation

@rcholic
Copy link
Contributor

@rcholic rcholic commented Dec 27, 2025

What Was Implemented

Phase 1: Core Tracing Infrastructure

Created tracing module structure:

Key Features:

  • Schema v1 compatible with Python SDK
  • JSONL (JSON Lines) format for easy parsing
  • Automatic directory creation
  • Append mode for multiple runs
  • Graceful error handling (logs errors, doesn't crash agent)

Phase 2: Tracer Class

Created Tracer API:

Key Features:

  • Automatic sequence number tracking
  • ISO 8601 timestamp generation
  • Convenience methods: emitRunStart(), emitStepStart(), emitRunEnd(), emitError()
  • Generic emit() for custom events
  • Async close() for flushing data

Exports

Updated main exports:

  • Modified src/index.ts to export all tracing classes and types
  • Users can import: Tracer, TraceSink, JsonlTraceSink, TraceEvent, TraceEventData

Dependencies

Added to package.json:

  • uuid@^9.0.0 (dependency)
  • @types/uuid@^9.0.0 (devDependency)

@rcholic rcholic merged commit 7291c9f into main Dec 27, 2025
3 checks passed
@rcholic rcholic deleted the tracer_support branch December 27, 2025 01:48
rcholic pushed a commit that referenced this pull request Jan 6, 2026
rcholic pushed a commit that referenced this pull request Jan 10, 2026
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