Skip to content

Commit ec136a8

Browse files
committed
fixed typecheck
1 parent 5cae55a commit ec136a8

File tree

1 file changed

+1
-1
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain

1 file changed

+1
-1
lines changed

instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain/span_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ def end_span(self, run_id: UUID) -> None:
9797
# Always end the span as OpenTelemetry spans don't expose end_time directly
9898
state.span.end()
9999

100-
def get_span(self, run_id: UUID) -> Span:
100+
def get_span(self, run_id: UUID) -> Optional[Span]:
101101
state = self.spans.get(run_id)
102102
return state.span if state else None

0 commit comments

Comments
 (0)