forked from phoenix-oss/llama-stack-mirror
Move the telemetry util import to be more lazy
This commit is contained in:
parent
392be5f6dc
commit
66d8f4ffd1
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,6 @@ from typing import Any, AsyncGenerator, Callable, Type, TypeVar
|
|||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from llama_stack.providers.utils.telemetry import tracing
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
|
@ -41,6 +39,8 @@ def trace_protocol(cls: Type[T]) -> Type[T]:
|
|||
"""
|
||||
|
||||
def trace_method(method: Callable) -> Callable:
|
||||
from llama_stack.providers.utils.telemetry import tracing
|
||||
|
||||
is_async = asyncio.iscoroutinefunction(method)
|
||||
is_async_gen = inspect.isasyncgenfunction(method)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue