Skip to content

Commit c000d6e

Browse files
committed
drop stream start and end events
1 parent 4797a9c commit c000d6e

File tree

1 file changed

+0
-2
lines changed
  • src/langtrace_python_sdk/instrumentation/cohere

1 file changed

+0
-2
lines changed

src/langtrace_python_sdk/instrumentation/cohere/patch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ def traced_method(wrapped, instance, args, kwargs):
407407
try:
408408
# Attempt to call the original method
409409
result = wrapped(*args, **kwargs)
410-
span.add_event(Event.STREAM_START.value)
411410
try:
412411
for event in result:
413412
if (
@@ -498,7 +497,6 @@ def traced_method(wrapped, instance, args, kwargs):
498497

499498
yield event
500499
finally:
501-
span.add_event(Event.STREAM_END.value)
502500
span.set_status(StatusCode.OK)
503501
span.end()
504502

0 commit comments

Comments
 (0)