File tree Expand file tree Collapse file tree
util/opentelemetry-util-genai
src/opentelemetry/util/genai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ classifiers = [
2626 " Programming Language :: Python :: 3.14" ,
2727]
2828dependencies = [
29- " opentelemetry-instrumentation ~= 0.58b0 " ,
30- " opentelemetry-semantic-conventions ~= 0.58b0 " ,
31- " opentelemetry-api>=1.31 .0" ,
29+ " opentelemetry-instrumentation ~= 0.61b0 " ,
30+ " opentelemetry-semantic-conventions ~= 0.61b0 " ,
31+ " opentelemetry-api>=1.40 .0" ,
3232]
3333
3434[project .entry-points .opentelemetry_genai_completion_hook ]
Original file line number Diff line number Diff line change @@ -116,23 +116,22 @@ def _lifecycle_context(
116116 """
117117 try :
118118 start (invocation )
119- except Exception :
119+ except Exception : # pylint: disable=broad-exception-caught
120120 _logger .warning ("Failed to start %s span" , label , exc_info = True )
121121 try :
122122 yield invocation
123123 except Exception as exc :
124124 try :
125125 fail (invocation , Error (message = str (exc ), type = type (exc )))
126- except Exception :
126+ except Exception : # pylint: disable=broad-exception-caught
127127 _logger .warning (
128128 "Failed to record %s failure" , label , exc_info = True
129129 )
130130 raise
131- else :
132- try :
133- stop (invocation )
134- except Exception :
135- _logger .warning ("Failed to stop %s span" , label , exc_info = True )
131+ try :
132+ stop (invocation )
133+ except Exception : # pylint: disable=broad-exception-caught
134+ _logger .warning ("Failed to stop %s span" , label , exc_info = True )
136135
137136
138137class TelemetryHandler :
You can’t perform that action at this time.
0 commit comments