Skip to main content

Schema models for the opentraces.ai agent trace JSONL format

Project description

opentraces-schema

Pydantic v2 models for the opentraces.ai JSONL trace format.

Install

pip install -e packages/opentraces-schema

Usage

from opentraces_schema import TraceRecord, SCHEMA_VERSION

record = TraceRecord(
    trace_id="abc-123",
    session_id="sess-456",
    agent={"name": "claude-code", "version": "1.0.32"},
)
line = record.to_jsonl_line()

Version

The schema version (0.2.0) lives in src/opentraces_schema/version.py as the single source of truth. See VERSION-POLICY.md for semver semantics and the bump checklist.

Schema Rationale

Every version of the schema ships with a rationale document explaining why each model and field exists, grounded in public standards (ATIF, Agent Trace, ADP, OTel) and empirical observations from real agent traces.

The current rationale is RATIONALE-0.2.0.md. Each version has its own rationale file linked from the CHANGELOG.

Contributing

Schema feedback, questions, and proposals are welcome via GitHub Issues. When suggesting a schema change, please include:

  • What field or model you would add, change, or remove
  • Why it matters for your use case (training, analytics, attribution, etc.)
  • How it relates to existing standards (ATIF, Agent Trace, ADP, OTel) if applicable

Breaking changes (field renames, removals, type changes) require a major version bump. New optional fields and models are minor bumps. See VERSION-POLICY.md for details.

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentraces_schema-0.2.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opentraces_schema-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file opentraces_schema-0.2.0.tar.gz.

File metadata

  • Download URL: opentraces_schema-0.2.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for opentraces_schema-0.2.0.tar.gz
Algorithm Hash digest
SHA256 99d98aeef5c5208b9fe32fb01d932efa22e34385ebce01f523b640c8e5fb4aeb
MD5 9e7a7ed06e0222b7acd26e0ec61e4db9
BLAKE2b-256 e9300ba46a95b5340719e4e06c7ca7d3e8fd31147a30ae30e3340e6b31c8ae16

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentraces_schema-0.2.0.tar.gz:

Publisher: publish.yml on JayFarei/opentraces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentraces_schema-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentraces_schema-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abad7b19a4352b8c4017791ce61dda2205356eb626597ccb424c1049f42da3e9
MD5 8b1af09660ddf0609b178a0d98f6fbd1
BLAKE2b-256 37e78c13c2763110e672efc03fe621aca7a9c17523bf3a0c149f4625e6b1f32c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentraces_schema-0.2.0-py3-none-any.whl:

Publisher: publish.yml on JayFarei/opentraces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page