We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cd76ad commit f3f8a03Copy full SHA for f3f8a03
1 file changed
cozeloop/internal/trace/span.py
@@ -533,7 +533,8 @@ def set_stat_info(self):
533
534
input_tokens = tag_map.get(INPUT_TOKENS, 0)
535
output_tokens = tag_map.get(OUTPUT_TOKENS, 0)
536
- self.set_tags({TOKENS: int(input_tokens) + int(output_tokens)})
+ if input_tokens > 0 or output_tokens > 0:
537
+ self.set_tags({TOKENS: int(input_tokens) + int(output_tokens)})
538
539
duration = int((datetime.now().timestamp() - self.start_time.timestamp()) * 1000000)
540
with self.lock:
0 commit comments