Skip to content

Commit 8d6aafc

Browse files
authored
Fix documentation typo and trailing comma in exporters
Fixed two minor issues: 1. corrected "wont" to "won't" in BackendSpanExporter's comment about client error handling. 2. removed unnecessary trailing comma in ConsoleSpanExporter's trace print statement. These changes improve code readability and documentation accuracy without affecting functionality.
1 parent 7e632c2 commit 8d6aafc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/tracing/processors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ConsoleSpanExporter(TracingExporter):
2222
def export(self, items: list[Trace | Span[Any]]) -> None:
2323
for item in items:
2424
if isinstance(item, Trace):
25-
print(f"[Exporter] Export trace_id={item.trace_id}, name={item.name}, ")
25+
print(f"[Exporter] Export trace_id={item.trace_id}, name={item.name}")
2626
else:
2727
print(f"[Exporter] Export span: {item.export()}")
2828

@@ -121,7 +121,7 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
121121
logger.debug(f"Exported {len(items)} items")
122122
return
123123

124-
# If the response is a client error (4xx), we wont retry
124+
# If the response is a client error (4xx), we won't retry
125125
if 400 <= response.status_code < 500:
126126
logger.error(
127127
f"[non-fatal] Tracing client error {response.status_code}: {response.text}"

0 commit comments

Comments
 (0)