MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / test_end_trace_not_initialized

Function test_end_trace_not_initialized

tests/unit/test_init_py.py:356–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354
355
356def test_end_trace_not_initialized():
357 with patch("agentops.tracer") as mock_tracer, patch("agentops.logger") as mock_logger:
358 mock_tracer.initialized = False
359 agentops.end_trace()
360 mock_logger.warning.assert_called_with("AgentOps SDK not initialized. Cannot end trace.")
361
362
363def test_update_trace_metadata_not_initialized():

Callers

nothing calls this directly

Calls 1

end_traceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…