Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Correct the trace path in examples #395

Merged
merged 1 commit into from
Apr 1, 2025
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
2 changes: 1 addition & 1 deletion examples/financial_research_agent/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def run(self, query: str) -> None:
with trace("Financial research trace", trace_id=trace_id):
self.printer.update_item(
"trace_id",
f"View trace: https://platform.openai.com/traces/{trace_id}",
f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}",
is_done=True,
hide_checkmark=True,
)
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp/filesystem_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def main():
) as server:
trace_id = gen_trace_id()
with trace(workflow_name="MCP Filesystem Example", trace_id=trace_id):
print(f"View trace: https://platform.openai.com/traces/{trace_id}\n")
print(f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}\n")
await run(server)


Expand Down
2 changes: 1 addition & 1 deletion examples/mcp/sse_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def main():
) as server:
trace_id = gen_trace_id()
with trace(workflow_name="SSE Example", trace_id=trace_id):
print(f"View trace: https://platform.openai.com/traces/{trace_id}\n")
print(f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}\n")
await run(server)


Expand Down
2 changes: 1 addition & 1 deletion examples/research_bot/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def run(self, query: str) -> None:
with trace("Research trace", trace_id=trace_id):
self.printer.update_item(
"trace_id",
f"View trace: https://platform.openai.com/traces/{trace_id}",
f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}",
is_done=True,
hide_checkmark=True,
)
Expand Down
2 changes: 1 addition & 1 deletion examples/research_bot/sample_outputs/product_recs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$ uv run python -m examples.research_bot.main

What would you like to research? Best surfboards for beginners. I can catch my own waves, but previously used an 11ft board. What should I look for, what are my options? Various budget ranges.
View trace: https://platform.openai.com/traces/trace_...
View trace: https://platform.openai.com/traces/trace?trace_id=trace_...
Starting research...
✅ Will perform 15 searches
✅ Searching... 15/15 completed
Expand Down
2 changes: 1 addition & 1 deletion examples/research_bot/sample_outputs/vacation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$ uv run python -m examples.research_bot.main
What would you like to research? Caribbean vacation spots in April, optimizing for surfing, hiking and water sports
View trace: https://platform.openai.com/traces/trace_....
View trace: https://platform.openai.com/traces/trace?trace_id=trace_....
Starting research...
✅ Will perform 15 searches
✅ Searching... 15/15 completed
Expand Down