Skip to content

Commit 73eca7a

Browse files
authored
feat!: remove AgentexTracingProcessor from default tracing processors (#349)
1 parent 870324e commit 73eca7a

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

src/agentex/lib/core/tracing/tracing_processor_manager.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import TYPE_CHECKING
44
from threading import Lock
55

6-
from agentex.lib.types.tracing import TracingProcessorConfig, AgentexTracingProcessorConfig
6+
from agentex.lib.types.tracing import TracingProcessorConfig
77
from agentex.lib.core.tracing.processors.sgp_tracing_processor import (
88
SGPSyncTracingProcessor,
99
SGPAsyncTracingProcessor,
@@ -73,22 +73,8 @@ def get_async_processors(self) -> list[AsyncTracingProcessor]:
7373
add_tracing_processor_config = GLOBAL_TRACING_PROCESSOR_MANAGER.add_processor_config
7474
set_tracing_processor_configs = GLOBAL_TRACING_PROCESSOR_MANAGER.set_processor_configs
7575

76-
# Lazy initialization to avoid circular imports
77-
_default_initialized = False
78-
79-
def _ensure_default_initialized():
80-
"""Ensure default processor is initialized (lazy to avoid circular imports)."""
81-
global _default_initialized
82-
if not _default_initialized:
83-
add_tracing_processor_config(AgentexTracingProcessorConfig())
84-
_default_initialized = True
85-
8676
def get_sync_tracing_processors():
87-
"""Get sync processors, initializing defaults if needed."""
88-
_ensure_default_initialized()
8977
return GLOBAL_TRACING_PROCESSOR_MANAGER.get_sync_processors()
9078

9179
def get_async_tracing_processors():
92-
"""Get async processors, initializing defaults if needed."""
93-
_ensure_default_initialized()
9480
return GLOBAL_TRACING_PROCESSOR_MANAGER.get_async_processors()

0 commit comments

Comments
 (0)