Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 302 additions & 0 deletions e2e/scenarios/jest-node/__snapshots__/log-payloads.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
[
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "Object.<anonymous>",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:1>",
"log_id": "g",
"metadata": {
"case": "basic-span",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:2>",
"span_attributes": {
"exec_counter": 0,
"name": "jest basic span",
"type": "task"
},
"span_id": "<span:2>"
},
{
"_is_merge": true,
"expected": "Paris",
"id": "<span:1>",
"input": "What is the capital of France?",
"log_id": "g",
"metadata": {
"case": "basic-span",
"scenario": "jest-node",
"testRunId": "<run:1>",
"transport": "http"
},
"output": "Paris",
"project_id": "<uuid:3>",
"root_span_id": "<span:2>",
"span_id": "<span:2>"
},
{
"_is_merge": true,
"id": "<span:1>",
"log_id": "g",
"metrics": {
"end": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:2>",
"span_id": "<span:2>"
},
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "Object.<anonymous>",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:4>",
"input": {
"transcript": {
"content_type": "application/json",
"filename": "conversation_transcript.json",
"key": "<uuid:6>",
"type": "braintrust_attachment"
},
"type": "chat_completion"
},
"log_id": "g",
"metadata": {
"case": "json-attachment",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"output": {
"attachment": true
},
"project_id": "<uuid:3>",
"root_span_id": "<span:5>",
"span_attributes": {
"exec_counter": 1,
"name": "root",
"type": "task"
},
"span_id": "<span:5>"
},
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "Object.<anonymous>",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:7>",
"input": {
"phase": "parent",
"testRunId": "<run:1>"
},
"log_id": "g",
"metadata": {
"case": "parent-span",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:8>",
"span_attributes": {
"exec_counter": 2,
"name": "jest parent span",
"type": "task"
},
"span_id": "<span:8>"
},
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "traced.name",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:9>",
"input": {
"step": "child",
"testRunId": "<run:1>"
},
"log_id": "g",
"metadata": {
"case": "child-span",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:8>",
"span_attributes": {
"exec_counter": 3,
"name": "jest child span"
},
"span_id": "<span:10>",
"span_parents": [
"<span:8>"
]
},
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "Object.<anonymous>",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:11>",
"log_id": "g",
"metadata": {
"case": "nested-parent",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:12>",
"span_attributes": {
"exec_counter": 4,
"name": "jest nested parent span",
"type": "task"
},
"span_id": "<span:12>"
},
{
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "traced.name",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:13>",
"log_id": "g",
"metadata": {
"case": "nested-child",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"end": 0,
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:12>",
"span_attributes": {
"exec_counter": 5,
"name": "jest nested child span"
},
"span_id": "<span:14>",
"span_parents": [
"<span:12>"
]
},
{
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "traced.name",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:15>",
"log_id": "g",
"metadata": {
"case": "nested-grandchild",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"end": 0,
"start": 0
},
"output": {
"depth": 3
},
"project_id": "<uuid:3>",
"root_span_id": "<span:12>",
"span_attributes": {
"exec_counter": 6,
"name": "jest nested grandchild span"
},
"span_id": "<span:16>",
"span_parents": [
"<span:14>"
]
},
{
"_is_merge": false,
"context": {
"caller_filename": "<repo>/e2e/scenarios/jest-node/runner.case.cjs",
"caller_functionname": "Object.<anonymous>",
"caller_lineno": 0
},
"created": "<timestamp>",
"id": "<span:17>",
"log_id": "g",
"metadata": {
"case": "current-span",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"metrics": {
"start": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:18>",
"span_attributes": {
"exec_counter": 7,
"name": "jest current span",
"type": "task"
},
"span_id": "<span:18>"
},
{
"_is_merge": true,
"id": "<span:17>",
"log_id": "g",
"metadata": {
"case": "current-span",
"scenario": "jest-node",
"testRunId": "<run:1>"
},
"output": {
"observedSpanId": "<span:18>"
},
"project_id": "<uuid:3>",
"root_span_id": "<span:18>",
"span_id": "<span:18>"
},
{
"_is_merge": true,
"id": "<span:17>",
"log_id": "g",
"metrics": {
"end": 0
},
"project_id": "<uuid:3>",
"root_span_id": "<span:18>",
"span_id": "<span:18>"
}
]
Loading
Loading