Get a tracer with the given name. Args: name: Name of the tracer Returns: A tracer with the given name
(self, name: str = "agentops")
| 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( |
no outgoing calls
no test coverage detected