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

Method get_tracer

agentops/sdk/core.py:318–331  ·  view source on GitHub ↗

Get a tracer with the given name. Args: name: Name of the tracer Returns: A tracer with the given name

(self, name: str = "agentops")

Source from the content-addressed store, hash-verified

316 logger.warning(f"Failed to force flush provider's span processors: {e}", exc_info=True)
317
318 def get_tracer(self, name: str = "agentops") -> trace.Tracer:
319 """
320 Get a tracer with the given name.
321
322 Args:
323 name: Name of the tracer
324
325 Returns:
326 A tracer with the given name
327 """
328 if not self._initialized:
329 raise AgentOpsClientNotInitializedException
330
331 return trace.get_tracer(name)
332
333 @classmethod
334 def initialize_from_config(

Callers 9

make_spanMethod · 0.95
_initialize_agentopsMethod · 0.45
_create_spanMethod · 0.45
_initialize_agentopsMethod · 0.45
_create_spanMethod · 0.45
_instrumentMethod · 0.45
unpatch_adkFunction · 0.45
_instrumentMethod · 0.45
_create_as_current_spanFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected