File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
util/opentelemetry-util-genai/src/opentelemetry/util/genai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515
16+ from contextlib import AbstractContextManager
1617from dataclasses import dataclass , field
1718from enum import Enum
1819from typing import (
1920 Any ,
20- ContextManager ,
2121 Dict ,
2222 List ,
2323 Literal ,
@@ -105,7 +105,7 @@ class LLMInvocation:
105105 request_model : str
106106 span : Optional [Span ] = None
107107 # Internal handle returned by opentelemetry.trace.use_span to keep the span active.
108- span_scope : Optional [ContextManager [Span ]] = field (
108+ span_scope : Optional [AbstractContextManager [Span ]] = field (
109109 default = None , compare = False , repr = False
110110 )
111111 input_messages : List [InputMessage ] = field (
You can’t perform that action at this time.
0 commit comments