Skip to content

Commit 70ae3ba

Browse files
committed
chor,e test: improve agent prompt
Asking to use auto instrumentation
1 parent 0ba3ab5 commit 70ae3ba

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

skills/sdk-install/braintrust-url-formats.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
### Experiments
66

7-
`https://www.braintrust.dev/app/{org}/p/{project}/experiments/{experiment_name}?r={root_span_id}&s={span_id}`
7+
`https://BRAINTRUST_APP_URL/{org}/p/{project}/experiments/{experiment_name}?r={root_span_id}&s={span_id}`
88

99
### Datasets
1010

11-
`https://www.braintrust.dev/app/{org}/p/{project}/datasets/{dataset_name}?r={root_span_id}`
11+
`https://BRAINTRUST_APP_URL/{org}/p/{project}/datasets/{dataset_name}?r={root_span_id}`
1212

1313
### Project Logs
1414

15-
`https://www.braintrust.dev/app/{org}/p/{project}/logs?r={root_span_id}&s={span_id}`
15+
`https://BRAINTRUST_APP_URL/{org}/p/{project}/logs?r={root_span_id}&s={span_id}`
1616

1717
## Legacy Object URLs
1818

19-
`https://www.braintrust.dev/app/object?object_type=...&object_id=...&id=...`
19+
`https://BRAINTRUST_APP_URL/object?object_type=...&object_id=...&id=...`
2020

2121
## URL Parameters
2222

@@ -25,6 +25,8 @@
2525
| r | The root_span_id - identifies a trace |
2626
| s | The span_id - identifies a specific span within the trace |
2727
| id | Legacy parameter for root_span_id in object URLs |
28+
| BRAINTRUST_APP_URL | url where the app is accessible, www.braintrust.dev/app for non self-hosted instances. See the env variable BRAINTRUST_APP_URL 9and use www.braintrust.dev/app if it is not set) |
29+
2830

2931
## Notes
3032

skills/sdk-install/instrument-task.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If not set, **abort installation immediately**.
4747
Determine the project language using concrete signals:
4848

4949
- `package.json` → TypeScript
50-
- `requirements.txt` or `pyproject.toml` → Python
50+
- `requirements.txt`, `setup.py` or `pyproject.toml` → Python
5151
- `pom.xml` or `build.gradle` → Java
5252
- `go.mod` → Go
5353
- `Gemfile` → Ruby
@@ -80,7 +80,7 @@ Read the install guide for the detected language from the local docs:
8080
Requirements:
8181

8282
- Pin an exact SDK version (resolve via package manager).
83-
- Modify only dependency files and a minimal application entry point (e.g., main/bootstrap).
83+
- Modify only dependency files and a minimal application entry point (e.g., main/bootstrap). Auto-instrument the app (except for Java and C# which don't support auto-instrumentation).
8484
- Do not change unrelated code.
8585

8686
---
@@ -108,13 +108,7 @@ Most language SDKs print a direct URL to the emitted trace after the app runs. C
108108

109109
If the SDK does not print a URL, construct one manually using the URL format documented in `{SDK_INSTALL_DIR}/braintrust-url-formats.md`:
110110

111-
```
112-
https://www.braintrust.dev/app/{org}/p/{project_name}/logs?r={root_span_id}
113-
```
114-
115-
- `org`: your Braintrust organization slug
116-
- `project_name`: the project name set in code
117-
- `root_span_id`: the trace/span ID returned or logged by the SDK
111+
See `{SDK_INSTALL_DIR}/braintrust-url-formats.md` for the url format.
118112

119113
---
120114

0 commit comments

Comments
 (0)