Skip to content

Commit 92d9a1b

Browse files
committed
removed dontThrow
1 parent 9e86cc7 commit 92d9a1b

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from langchain_core.outputs import LLMResult # type: ignore
2121

2222
from opentelemetry.instrumentation.langchain.span_manager import SpanManager
23-
from opentelemetry.instrumentation.langchain.utils import dont_throw
2423
from opentelemetry.semconv._incubating.attributes import (
2524
gen_ai_attributes as GenAI,
2625
)
@@ -46,7 +45,6 @@ def __init__(
4645
tracer=tracer,
4746
)
4847

49-
@dont_throw
5048
def on_chat_model_start(
5149
self,
5250
serialized: Dict[str, Any],
@@ -106,7 +104,6 @@ def on_chat_model_start(
106104
GenAI.GEN_AI_REQUEST_TEMPERATURE, temperature
107105
)
108106

109-
@dont_throw
110107
def on_llm_end(
111108
self,
112109
response: LLMResult, # type: ignore
@@ -165,7 +162,6 @@ def on_llm_end(
165162
# End the LLM span
166163
self.span_manager.end_span(run_id)
167164

168-
@dont_throw
169165
def on_llm_error(
170166
self,
171167
error: BaseException,

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

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)