--- pretty_name: Exgentic Traces v2 language: - en size_categories: - 10K` | OTel status | | **`attributes`** | **`struct<...180 typed fields...>`** | Native dict — see typing table below | | `resource_attributes` | `struct<...7 typed fields...>` | service/SDK/deployment info | | `events` | string | JSON-encoded list (includes `gen_ai.evaluation.result` for scoring) | ### Native types on critical fields The OTel GenAI semantic conventions specify native types for several attributes. This dataset preserves them — no `int(attr)` or `json.loads(attr)` cast needed at consumer side: | Attribute | Type | |---|---| | `gen_ai.usage.input_tokens` | `int64` | | `gen_ai.usage.output_tokens` | `int64` | | `gen_ai.request.max_tokens` | `int64` | | `gen_ai.request.temperature` | `double` | | `gen_ai.response.finish_reasons` | `list` | | `gen_ai.request.stop_sequences` | `list` | | `gen_ai.input.messages` | `string` (JSON-encoded — multi-part content shape) | | `gen_ai.output.messages` | `string` (JSON-encoded) | | `gen_ai.tool.definitions` | `string` (JSON-encoded) | ### Model name canonicalization The same underlying deployment previously appeared under up to three different routing-prefix forms (e.g. `Azure/gpt-5.2-…`, `openai/Azure/gpt-5.2-…`, `gpt-5.2-…`). All model names are now canonicalized to a single form by stripping routing prefix segments. This applies to both `gen_ai.request.model` / `gen_ai.response.model` in spans and the per-row top-level `models` list. ### Per-row top-level `models` Aggregated freshly from each row's chat spans (not from stale ingest metadata). A row's `models` list contains exactly the set of `gen_ai.request.model` / `gen_ai.response.model` values that appear in its chat spans — no empty lists, no orphan entries. --- ## Storage layout | | | |---|---| | Sessions (rows) | **10,573** | | Total spans | **626,278** (chat + invoke_agent + execute_tool) | | Compressed size | **469 MB** across 9 shards | | Shards | `data/train/{0000..0008}.parquet` | | Compression | zstd level 12, `row_group_size=10`, `data_page_size=4 MB` | | Source framework | [Exgentic](https://github.com/Exgentic/exgentic) | | Tracing spec | [OTel GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) | ### Why these writer parameters Empirically tuned across schema variants, compression algorithms/levels, row-group sizes, and shard counts: - **`struct` (not `map`) for attributes**: PyArrow's `map_` loads as `list[tuple]` rather than `dict`; struct gives v1-compatible direct dict access. - **`row_group_size=10`**: keeps each row group's nested data below PyArrow's chunked-output limit (~2 GB), avoiding `ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs`. - **`data_page_size=4 MB`**: ~2× faster cold-load on the wide-attribute struct vs the default 1 MB page granularity, with no size penalty. - **zstd level 12**: marginal additional compression over level 22 is not worth the much slower write time; decompression cost is identical. --- ## Filtering to agent-only in-place ```python attrs = span["attributes"] is_agent_chat = ( attrs.get("gen_ai.operation.name") == "chat" and not attrs.get("exgentic.actor.role") # drops user_simulator + judge and attrs.get("gen_ai.input.messages") # drops Issue #13 stragglers ) ``` Or use the pre-filtered companion dataset: [`Exgentic/agent-llm-traces-v2`](https://huggingface.co/datasets/Exgentic/agent-llm-traces-v2). --- ## Citation ```bibtex @misc{exgentic-traces-v2, title = {Exgentic Traces v2: OpenTelemetry-Shaped Execution Traces for Agent Benchmarks}, author = {Exgentic team}, year = {2026}, url = {https://huggingface.co/datasets/Exgentic/traces-v2} } ```