From cabe1a9db83e4fe4962e0536a8314a84c47c24bb Mon Sep 17 00:00:00 2001 From: Andrei Bratu Date: Thu, 21 Nov 2024 15:27:33 -0800 Subject: [PATCH] Remove needless rounding in SDK --- src/humanloop/otel/processor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/humanloop/otel/processor.py b/src/humanloop/otel/processor.py index 5caa5c80..3542c244 100644 --- a/src/humanloop/otel/processor.py +++ b/src/humanloop/otel/processor.py @@ -73,10 +73,10 @@ def _process_span_dispatch(span: ReadableSpan, children_spans: list[ReadableSpan # Processing common to all Humanloop File types if span.start_time: - span._attributes[f"{HUMANLOOP_LOG_KEY}.start_time"] = int(span.start_time / 1e9) # type: ignore + span._attributes[f"{HUMANLOOP_LOG_KEY}.start_time"] = span.start_time / 1e9 # type: ignore if span.end_time: - span._attributes[f"{HUMANLOOP_LOG_KEY}.end_time"] = int(span.end_time / 1e9) # type: ignore - span._attributes[f"{HUMANLOOP_LOG_KEY}.created_at"] = int(span.end_time / 1e9) # type: ignore + span._attributes[f"{HUMANLOOP_LOG_KEY}.end_time"] = span.end_time / 1e9 # type: ignore + span._attributes[f"{HUMANLOOP_LOG_KEY}.created_at"] = span.end_time / 1e9 # type: ignore # Processing specific to each Humanloop File type if file_type == "prompt":