Skip to content

Commit 9682108

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 1de4601 commit 9682108

6 files changed

Lines changed: 4 additions & 3 deletions

assets/img/blog/RooCodeBraintrustTrace/BraintrustProjectId.png renamed to assets/img/blog/BraintrustProjectId.png

File renamed without changes.

assets/img/blog/RooCodeBraintrustTrace/BraintrustRooCodeChatTrace.png renamed to assets/img/blog/BraintrustRooCodeChatTrace.png

File renamed without changes.

assets/img/blog/RooCodeBraintrustTrace/RooCodeBraintrustTraceCache1.png renamed to assets/img/blog/RooCodeBraintrustTraceCache1.png

File renamed without changes.

assets/img/blog/RooCodeBraintrustTrace/RooCodeBraintrustTraceCache2.png renamed to assets/img/blog/RooCodeBraintrustTraceCache2.png

File renamed without changes.

assets/img/blog/RooCodeBraintrustTrace/RooCodeBraintrustTraceCacheConfiguration.png renamed to assets/img/blog/RooCodeBraintrustTraceCacheConfiguration.png

File renamed without changes.

content/en/blog/Roo-Code/how-to-trace-and-log-roo-code-api-post-requests-with-braintrust-ai-proxy.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here’s how to configure **Roo Code**’s UI to route all your OpenAI–compati
3838
* Paste your **Braintrust** API key here.
3939
* Whenever you include tracing headers, Braintrust uses this key to authenticate and associate spans with your project.
4040

41-
{{< image class="rounded lightbox" src="/img/blog/RooCodeBraintrustTrace/RooCodeBraintrustTraceCacheConfiguration.png" caption="Click the image to enlarge and view the full configuration: Insert the Braintrust proxy endpoint into Roo Code's Base URL field. Add the Braintrust-specific headers to enable tracing and caching." >}}
41+
{{< image class="rounded lightbox" src="/img/blog/RooCodeBraintrustTraceCacheConfiguration.png" caption="Click the image to enlarge and view the full configuration: Insert the Braintrust proxy endpoint into Roo Code's Base URL field. Add the Braintrust-specific headers to enable tracing and caching." >}}
4242

4343
4. **Custom Headers**
4444

@@ -48,7 +48,7 @@ Here’s how to configure **Roo Code**’s UI to route all your OpenAI–compati
4848
* `x-bt-parent` = `project_id:<YOUR_PROJECT_ID>`
4949
* These instruct the proxy to cache deterministic calls and to start a new trace under your Braintrust project.
5050

51-
{{< image class="rounded lightbox" src="/img/blog/RooCodeBraintrustTrace/BraintrustProjectId.png" caption="Get project id in braintrust web ui." >}}
51+
{{< image class="rounded lightbox" src="/img/blog/BraintrustProjectId.png" caption="Get project id in braintrust web ui." >}}
5252

5353
5. **Enable Streaming** (optional)
5454

@@ -82,7 +82,8 @@ Every request that includes `x-bt-parent` will emit a root span into Braintrust
8282

8383
This gives you full visibility into prompt inputs, response tokens, timings, and cache hits—all without modifying any application code.
8484

85-
{{< image class="rounded lightbox" src="/img/blog/RooCodeBraintrustTrace/BraintrustRooCodeChatTrace.png" caption="Braintrust chat trace" >}}
85+
86+
{{< image class="rounded lightbox" src="/img/blog/BraintrustRooCodeChatTrace.png" caption="Braintrust chat trace" >}}
8687

8788
## Further Reading
8889

0 commit comments

Comments
 (0)