Skip to content

Commit e8be641

Browse files
committed
removed optional
1 parent a63f271 commit e8be641

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def on_chain_start(
8181
self._invocation_manager.add_invocation_state(
8282
run_id,
8383
parent_run_id,
84+
None
8485
)
8586

8687
def on_chain_end(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def add_invocation_state(
3939
self,
4040
run_id: UUID,
4141
parent_run_id: Optional[UUID],
42-
invocation: Optional[GenAIInvocation] = None,
42+
invocation: GenAIInvocation,
4343
):
4444
invocation_state = _InvocationState(invocation=invocation)
4545
self._invocations[run_id] = invocation_state

0 commit comments

Comments
 (0)