Skip to content
Merged
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
6 changes: 2 additions & 4 deletions agentops/instrumentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,6 @@ class InstrumentorConfig(TypedDict):
# Combine all target packages for monitoring
TARGET_PACKAGES = set(PROVIDERS.keys()) | set(AGENTIC_LIBRARIES.keys())

# Create a single instance of the manager
# _manager = InstrumentationManager() # Removed


@dataclass
class InstrumentorLoader:
Expand Down Expand Up @@ -444,7 +441,8 @@ def instrument_one(loader: InstrumentorLoader) -> Optional[BaseInstrumentor]:

instrumentor = loader.get_instance()
try:
instrumentor.instrument(tracer_provider=tracer._provider)
# Use the provider directly from the global tracer instance
instrumentor.instrument(tracer_provider=tracer.provider)
logger.info(
f"AgentOps: Successfully instrumented '{loader.class_name}' for package '{loader.package_name or loader.module_name}'."
)
Expand Down
Loading