We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d948a commit 0d49e28Copy full SHA for 0d49e28
1 file changed
util/opentelemetry-util-genai/src/opentelemetry/util/genai/types.py
@@ -13,11 +13,11 @@
13
# limitations under the License.
14
15
16
+from contextlib import AbstractContextManager
17
from dataclasses import dataclass, field
18
from enum import Enum
19
from typing import (
20
Any,
- ContextManager,
21
Dict,
22
List,
23
Literal,
@@ -105,7 +105,7 @@ class LLMInvocation:
105
request_model: str
106
span: Optional[Span] = None
107
# Internal handle returned by opentelemetry.trace.use_span to keep the span active.
108
- span_scope: Optional[ContextManager[Span]] = field(
+ span_scope: Optional[AbstractContextManager[Span]] = field(
109
default=None, compare=False, repr=False
110
)
111
input_messages: List[InputMessage] = field(
0 commit comments