Skip to content

Commit 0b2e26b

Browse files
author
Andrei Bratu
authored
Remove needless rounding in SDK (#40)
1 parent 5a1e3bf commit 0b2e26b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/humanloop/otel/processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def _process_span_dispatch(span: ReadableSpan, children_spans: list[ReadableSpan
7373

7474
# Processing common to all Humanloop File types
7575
if span.start_time:
76-
span._attributes[f"{HUMANLOOP_LOG_KEY}.start_time"] = int(span.start_time / 1e9) # type: ignore
76+
span._attributes[f"{HUMANLOOP_LOG_KEY}.start_time"] = span.start_time / 1e9 # type: ignore
7777
if span.end_time:
78-
span._attributes[f"{HUMANLOOP_LOG_KEY}.end_time"] = int(span.end_time / 1e9) # type: ignore
79-
span._attributes[f"{HUMANLOOP_LOG_KEY}.created_at"] = int(span.end_time / 1e9) # type: ignore
78+
span._attributes[f"{HUMANLOOP_LOG_KEY}.end_time"] = span.end_time / 1e9 # type: ignore
79+
span._attributes[f"{HUMANLOOP_LOG_KEY}.created_at"] = span.end_time / 1e9 # type: ignore
8080

8181
# Processing specific to each Humanloop File type
8282
if file_type == "prompt":

0 commit comments

Comments
 (0)