Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def __init__(self, _config: TelemetryConfig, deps: dict[Api, Any]) -> None:
metrics.set_meter_provider(metric_provider)

self.meter = metrics.get_meter(__name__)

self._lock = _global_lock

async def initialize(self) -> None:
Expand Down
4 changes: 2 additions & 2 deletions llama_stack/providers/utils/telemetry/trace_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_span_context(self: Any, *args: Any, **kwargs: Any) -> tuple:
"__class__": class_name,
"__method__": method_name,
"__type__": span_type,
"__args__": str(combined_args),
"__args__": json.dumps(combined_args),
}

return class_name, method_name, span_attributes
Expand All @@ -82,8 +82,8 @@ async def async_gen_wrapper(self: Any, *args: Any, **kwargs: Any) -> AsyncGenera
class_name, method_name, span_attributes = create_span_context(self, *args, **kwargs)

with tracing.span(f"{class_name}.{method_name}", span_attributes) as span:
count = 0
try:
count = 0
async for item in method(self, *args, **kwargs):
yield item
count += 1
Expand Down
Loading
Loading