Skip to content

Commit ba31df5

Browse files
M-HietalaMarko Hietala
and
Marko Hietala
authored
async tracing fix for cases when spantype is not set (Azure#38522)
Co-authored-by: Marko Hietala <[email protected]>
1 parent 41cec39 commit ba31df5

File tree

1 file changed

+1
-1
lines changed
  • sdk/ai/azure-ai-inference/azure/ai/inference

1 file changed

+1
-1
lines changed

sdk/ai/azure-ai-inference/azure/ai/inference/tracing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def _trace_async_function(
640640
async def inner(*args, **kwargs):
641641
span_impl_type = settings.tracing_implementation()
642642
if span_impl_type is None:
643-
return function(*args, **kwargs)
643+
return await function(*args, **kwargs)
644644

645645
class_function_name = function.__qualname__
646646

0 commit comments

Comments
 (0)