@@ -65,7 +65,7 @@ def traced_method(wrapped, instance, args, kwargs):
6565
6666 with tracer .start_as_current_span (
6767 APIS ["IMAGES_GENERATION" ]["METHOD" ],
68- kind = SpanKind .CLIENT . value ,
68+ kind = SpanKind .CLIENT ,
6969 context = set_span_in_context (trace .get_current_span ()),
7070 ) as span :
7171 set_span_attributes (span , attributes )
@@ -128,7 +128,7 @@ async def traced_method(wrapped, instance, args, kwargs):
128128
129129 with tracer .start_as_current_span (
130130 APIS ["IMAGES_GENERATION" ]["METHOD" ],
131- kind = SpanKind .CLIENT . value ,
131+ kind = SpanKind .CLIENT ,
132132 context = set_span_in_context (trace .get_current_span ()),
133133 ) as span :
134134 set_span_attributes (span , attributes )
@@ -193,7 +193,7 @@ def traced_method(wrapped, instance, args, kwargs):
193193
194194 with tracer .start_as_current_span (
195195 APIS ["IMAGES_EDIT" ]["METHOD" ],
196- kind = SpanKind .CLIENT . value ,
196+ kind = SpanKind .CLIENT ,
197197 context = set_span_in_context (trace .get_current_span ()),
198198 ) as span :
199199 set_span_attributes (span , attributes )
@@ -283,7 +283,7 @@ def traced_method(wrapped, instance, args, kwargs):
283283
284284 span = tracer .start_span (
285285 APIS ["CHAT_COMPLETION" ]["METHOD" ],
286- kind = SpanKind .CLIENT . value ,
286+ kind = SpanKind .CLIENT ,
287287 context = set_span_in_context (trace .get_current_span ()),
288288 )
289289 _set_input_attributes (span , kwargs , attributes )
@@ -377,7 +377,7 @@ async def traced_method(wrapped, instance, args, kwargs):
377377
378378 span = tracer .start_span (
379379 APIS ["CHAT_COMPLETION" ]["METHOD" ],
380- kind = SpanKind .CLIENT . value ,
380+ kind = SpanKind .CLIENT ,
381381 context = set_span_in_context (trace .get_current_span ()),
382382 )
383383 _set_input_attributes (span , kwargs , attributes )
@@ -456,7 +456,7 @@ def traced_method(wrapped, instance, args, kwargs):
456456
457457 with tracer .start_as_current_span (
458458 APIS ["EMBEDDINGS_CREATE" ]["METHOD" ],
459- kind = SpanKind .CLIENT . value ,
459+ kind = SpanKind .CLIENT ,
460460 context = set_span_in_context (trace .get_current_span ()),
461461 ) as span :
462462
@@ -513,7 +513,7 @@ async def traced_method(wrapped, instance, args, kwargs):
513513
514514 with tracer .start_as_current_span (
515515 APIS ["EMBEDDINGS_CREATE" ]["METHOD" ],
516- kind = SpanKind .CLIENT . value ,
516+ kind = SpanKind .CLIENT ,
517517 context = set_span_in_context (trace .get_current_span ()),
518518 ) as span :
519519
0 commit comments