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

Function get_client

agentops/__init__.py:45–55  ·  view source on GitHub ↗

Get the singleton client instance in a thread-safe manner

()

Source from the content-addressed store, hash-verified

43
44
45def get_client() -> Client:
46 """Get the singleton client instance in a thread-safe manner"""
47 global _client
48
49 # Double-checked locking pattern for thread safety
50 if _client is None:
51 with _client_lock:
52 if _client is None:
53 _client = Client()
54
55 return _client
56
57
58@deprecated("Automatically tracked in v4.")

Callers 12

get_jwt_tokenFunction · 0.90
upload_logfileFunction · 0.90
get_trace_urlFunction · 0.90
log_trace_urlFunction · 0.90
wrap_kickoff_implFunction · 0.90
wrap_task_execute_implFunction · 0.90
set_config_tagsMethod · 0.90
initFunction · 0.70
configureFunction · 0.70

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…