Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changeset/eve-instrumentation-hooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"braintrust": minor
---

feat: Use new eve instrumentation hooks
1 change: 1 addition & 0 deletions e2e/config/pr-comment-scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@
"metadataScenario": "eve-instrumentation",
"variants": [
{ "variantKey": "eve-v0", "label": "v0 pinned" },
{ "variantKey": "eve-v0-provider", "label": "v0 provider minimum" },
{ "variantKey": "eve-v0-latest", "label": "v0 latest" }
]
},
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

519 changes: 282 additions & 237 deletions e2e/scenarios/eve-instrumentation/__cassettes__/eve-v0.cassette.json

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
span_tree:
├── eve.turn [task]
│ input: [
│ {
│ "content": "Run the Braintrust Eve instrumentation e2e scenario",
│ "role": "user"
│ }
│ ]
│ output: "Final answer from read: Researcher result: [Eve instrumentation](https://eve.dev/docs/guides/instrumentation). Title: Eve instrumentation. URL: https://eve.dev/docs/guides/instrumentation. Excerpt: \"Eve hooks expose runtime stream events that Braintrust maps into a nested turn trace.\""
│ metadata: {
│ "eve.session_id": "<eve.session_id:1>",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
│ }
│ metrics: {
│ "completion_tokens": 853,
│ "prompt_cache_creation_tokens": 0,
│ "prompt_cached_tokens": 0,
│ "prompt_tokens": 7934,
│ "tokens": 8787
│ }
│ ├── eve.step [llm]
│ │ input: [
│ │ {
Expand Down Expand Up @@ -65,6 +51,8 @@ span_tree:
│ │ ]
│ │ metadata: {
│ │ "eve.session_id": "<eve.session_id:1>",
│ │ "model": "qwen/qwen3-30b-a3b",
│ │ "provider": "openrouter",
│ │ "scenario": "eve-instrumentation",
│ │ "testRunId": "<run:1>"
│ │ }
Expand All @@ -81,32 +69,17 @@ span_tree:
│ │ }
│ │ output: "Researcher result: [Eve instrumentation](https://eve.dev/docs/guides/instrumentation)"
│ │ metadata: {
│ │ "eve.action_kind": "subagent-call",
│ │ "eve.session_id": "<eve.session_id:1>",
│ │ "scenario": "eve-instrumentation",
│ │ "testRunId": "<run:1>"
│ │ }
│ │ └── eve.turn [task]
│ │ input: [
│ │ {
│ │ "content": "You are the subagent \"researcher\".\nDescription: Research the Eve instrumentation documentation before the parent reads it.\n\nThe caller delegated the following task to you. Complete it and return the final result directly.\n\nCaller message:\nRun the Braintrust Eve instrumentation e2e scenario",
│ │ "role": "user"
│ │ }
│ │ ]
│ │ output: "Researcher result: [Eve instrumentation](https://eve.dev/docs/guides/instrumentation)"
│ │ metadata: {
│ │ "eve.session_id": "<eve.session_id:1>",
│ │ "model": "qwen/qwen3-30b-a3b",
│ │ "provider": "openrouter",
│ │ "scenario": "eve-instrumentation",
│ │ "testRunId": "<run:1>"
│ │ }
│ │ metrics: {
│ │ "completion_tokens": 388,
│ │ "prompt_cache_creation_tokens": 0,
│ │ "prompt_cached_tokens": 0,
│ │ "prompt_tokens": 6326,
│ │ "tokens": 6714
│ │ }
│ │ ├── eve.step [llm]
│ │ │ input: [
│ │ │ {
Expand Down Expand Up @@ -167,6 +140,7 @@ span_tree:
│ │ │ "url": "https://eve.dev/docs/guides/instrumentation"
│ │ │ }
│ │ │ metadata: {
│ │ │ "eve.action_kind": "tool-call",
│ │ │ "eve.session_id": "<eve.session_id:1>",
│ │ │ "scenario": "eve-instrumentation",
│ │ │ "testRunId": "<run:1>"
Expand Down Expand Up @@ -257,6 +231,7 @@ span_tree:
│ │ "url": "https://eve.dev/docs/guides/instrumentation"
│ │ }
│ │ metadata: {
│ │ "eve.action_kind": "tool-call",
│ │ "eve.session_id": "<eve.session_id:1>",
│ │ "scenario": "eve-instrumentation",
│ │ "testRunId": "<run:1>"
Expand Down Expand Up @@ -347,6 +322,8 @@ span_tree:
│ ]
│ metadata: {
│ "eve.session_id": "<eve.session_id:1>",
│ "model": "qwen/qwen3-30b-a3b",
│ "provider": "openrouter",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
│ }
Expand All @@ -358,25 +335,11 @@ span_tree:
│ "tokens": 4603
│ }
└── eve.turn [task]
input: [
{
"content": "Run the Braintrust Eve instrumentation e2e scenario again",
"role": "user"
}
]
output: "Final answer from read: Researcher result: [Eve instrumentation](https://eve.dev/docs/guides/instrumentation). Title: Eve instrumentation. URL: https://eve.dev/docs/guides/instrumentation. Excerpt: \"Eve hooks expose runtime stream events that Braintrust maps into a nested turn trace.\""
metadata: {
"eve.session_id": "<eve.session_id:1>",
"scenario": "eve-instrumentation",
"testRunId": "<run:1>"
}
metrics: {
"completion_tokens": 568,
"prompt_cache_creation_tokens": 0,
"prompt_cached_tokens": 0,
"prompt_tokens": 8224,
"tokens": 8792
}
├── eve.step [llm]
│ input: [
│ {
Expand Down Expand Up @@ -498,6 +461,8 @@ span_tree:
│ ]
│ metadata: {
│ "eve.session_id": "<eve.session_id:1>",
│ "model": "qwen/qwen3-30b-a3b",
│ "provider": "openrouter",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
│ }
Expand All @@ -514,32 +479,17 @@ span_tree:
│ }
│ output: "Researcher result: Eve instrumentation https://eve.dev/docs/guides/instrumentation"
│ metadata: {
│ "eve.action_kind": "subagent-call",
│ "eve.session_id": "<eve.session_id:1>",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
│ }
│ └── eve.turn [task]
│ input: [
│ {
│ "content": "You are the subagent \"researcher\".\nDescription: Research the Eve instrumentation documentation before the parent reads it.\n\nThe caller delegated the following task to you. Complete it and return the final result directly.\n\nCaller message:\nRun the Braintrust Eve instrumentation e2e scenario again",
│ "role": "user"
│ }
│ ]
│ output: "Researcher result: Eve instrumentation https://eve.dev/docs/guides/instrumentation"
│ metadata: {
│ "eve.session_id": "<eve.session_id:1>",
│ "model": "qwen/qwen3-30b-a3b",
│ "provider": "openrouter",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
│ }
│ metrics: {
│ "completion_tokens": 376,
│ "prompt_cache_creation_tokens": 0,
│ "prompt_cached_tokens": 0,
│ "prompt_tokens": 6314,
│ "tokens": 6690
│ }
│ ├── eve.step [llm]
│ │ input: [
│ │ {
Expand Down Expand Up @@ -600,6 +550,7 @@ span_tree:
│ │ "url": "https://eve.dev/docs/guides/instrumentation"
│ │ }
│ │ metadata: {
│ │ "eve.action_kind": "tool-call",
│ │ "eve.session_id": "<eve.session_id:1>",
│ │ "scenario": "eve-instrumentation",
│ │ "testRunId": "<run:1>"
Expand Down Expand Up @@ -690,6 +641,7 @@ span_tree:
│ "url": "https://eve.dev/docs/guides/instrumentation"
│ }
│ metadata: {
│ "eve.action_kind": "tool-call",
│ "eve.session_id": "<eve.session_id:1>",
│ "scenario": "eve-instrumentation",
│ "testRunId": "<run:1>"
Expand Down Expand Up @@ -855,6 +807,8 @@ span_tree:
]
metadata: {
"eve.session_id": "<eve.session_id:1>",
"model": "qwen/qwen3-30b-a3b",
"provider": "openrouter",
"scenario": "eve-instrumentation",
"testRunId": "<run:1>"
}
Expand Down
Loading
Loading