|
1 | 1 | """Lightweight trace builder for ingestion hook mode. |
2 | 2 |
|
3 | 3 | This module provides a TraceBuilder class that implements the same interface as |
4 | | -GalileoLogger for trace building, but without requiring Galileo credentials or |
| 4 | +SplunkAOLogger for trace building, but without requiring Galileo credentials or |
5 | 5 | backend connectivity. |
6 | 6 |
|
7 | 7 | When using `ingestion_hook`, the plugin can build traces locally and pass them |
@@ -46,10 +46,10 @@ def _handle_async_hook_result(task: asyncio.Task) -> None: |
46 | 46 | class TraceBuilder(TracesLogger): |
47 | 47 | """Lightweight trace builder for ingestion hook mode. |
48 | 48 |
|
49 | | - Inherits trace-building logic from TracesLogger (same base as GalileoLogger). |
| 49 | + Inherits trace-building logic from TracesLogger (same base as SplunkAOLogger). |
50 | 50 | No Galileo credentials or backend connection required. |
51 | 51 |
|
52 | | - This class provides the same interface as GalileoLogger for: |
| 52 | + This class provides the same interface as SplunkAOLogger for: |
53 | 53 | - Starting traces and adding spans (llm, tool, workflow, agent, retriever) |
54 | 54 | - Managing parent span hierarchy |
55 | 55 | - Flushing traces (calls ingestion_hook instead of API) |
@@ -150,8 +150,8 @@ def start_trace( |
150 | 150 | ) -> LoggedTrace: |
151 | 151 | """Create a new trace and add it to the list of traces. |
152 | 152 |
|
153 | | - This method mirrors GalileoLogger.start_trace() for API compatibility |
154 | | - with GalileoBaseHandler. |
| 153 | + This method mirrors SplunkAOLogger.start_trace() for API compatibility |
| 154 | + with SplunkAOBaseHandler. |
155 | 155 |
|
156 | 156 | Parameters |
157 | 157 | ---------- |
@@ -228,7 +228,7 @@ def add_workflow_span( |
228 | 228 | """Add a workflow span to the current parent. |
229 | 229 |
|
230 | 230 | This method wraps TracesLogger.add_workflow_span() to accept |
231 | | - `metadata` parameter (for GalileoBaseHandler compatibility). |
| 231 | + `metadata` parameter (for SplunkAOBaseHandler compatibility). |
232 | 232 | """ |
233 | 233 | parent = self.current_parent() |
234 | 234 | span = LoggedWorkflowSpan( |
@@ -269,7 +269,7 @@ def add_agent_span( |
269 | 269 | """Add an agent span to the current parent. |
270 | 270 |
|
271 | 271 | This method wraps TracesLogger.add_agent_span() to accept |
272 | | - `metadata` parameter (for GalileoBaseHandler compatibility). |
| 272 | + `metadata` parameter (for SplunkAOBaseHandler compatibility). |
273 | 273 | """ |
274 | 274 | parent = self.current_parent() |
275 | 275 | span = LoggedAgentSpan( |
@@ -318,7 +318,7 @@ def add_llm_span( |
318 | 318 | """Add an LLM span to the current parent. |
319 | 319 |
|
320 | 320 | This method wraps TracesLogger.add_llm_span() to accept |
321 | | - `metadata` parameter (for GalileoBaseHandler compatibility). |
| 321 | + `metadata` parameter (for SplunkAOBaseHandler compatibility). |
322 | 322 | """ |
323 | 323 | span = LoggedLlmSpan( |
324 | 324 | input=input, |
@@ -365,7 +365,7 @@ def add_tool_span( |
365 | 365 | """Add a tool span to the current parent. |
366 | 366 |
|
367 | 367 | This method wraps TracesLogger.add_tool_span() to accept |
368 | | - `metadata` parameter (for GalileoBaseHandler compatibility). |
| 368 | + `metadata` parameter (for SplunkAOBaseHandler compatibility). |
369 | 369 | """ |
370 | 370 | return super().add_tool_span( |
371 | 371 | id=uuid.uuid4(), |
@@ -400,7 +400,7 @@ def add_retriever_span( |
400 | 400 | """Add a retriever span to the current parent. |
401 | 401 |
|
402 | 402 | This method wraps TracesLogger.add_retriever_span() to accept |
403 | | - `metadata` parameter (for GalileoBaseHandler compatibility). |
| 403 | + `metadata` parameter (for SplunkAOBaseHandler compatibility). |
404 | 404 | """ |
405 | 405 | documents = convert_to_documents(output, "output") |
406 | 406 | redacted_documents = convert_to_documents(redacted_output, "redacted_output") |
|
0 commit comments