Skip to content

Commit 3e5104c

Browse files
committed
bump trace attributes version and cleanup
1 parent 657b9e6 commit 3e5104c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers=[
1818
"Operating System :: OS Independent",
1919
]
2020
dependencies = [
21-
'trace-attributes==7.0.1',
21+
'trace-attributes==7.0.4',
2222
'opentelemetry-api>=1.25.0',
2323
'opentelemetry-sdk>=1.25.0',
2424
'opentelemetry-instrumentation>=0.47b0',

src/langtrace_python_sdk/instrumentation/mistral/patch.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
)
3232
from langtrace_python_sdk.constants.instrumentation.mistral import APIS
3333
from langtrace_python_sdk.utils.llm import (
34-
calculate_prompt_tokens,
3534
get_extra_attributes,
3635
get_langtrace_attributes,
3736
get_llm_request_attributes,
@@ -77,11 +76,9 @@ def traced_method(wrapped, instance, args, kwargs):
7776
try:
7877
result = wrapped(*args, **kwargs)
7978
if is_streaming:
80-
prompt_tokens = 0
8179
return StreamWrapper(
8280
result,
8381
span,
84-
prompt_tokens,
8582
function_call=kwargs.get("functions") is not None,
8683
tool_calls=kwargs.get("tools") is not None,
8784
)

0 commit comments

Comments
 (0)