Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions python/sglang/srt/managers/tokenizer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,9 +2415,10 @@ def convert_to_span_attrs(
return span_attrs

# Token usage attributes
span_attrs[SpanAttributes.GEN_AI_USAGE_COMPLETION_TOKENS] = (
recv_obj.completion_tokens[i]
)
if not isinstance(recv_obj, BatchEmbeddingOutput):
span_attrs[SpanAttributes.GEN_AI_USAGE_COMPLETION_TOKENS] = (
recv_obj.completion_tokens[i]
)
span_attrs[SpanAttributes.GEN_AI_USAGE_PROMPT_TOKENS] = recv_obj.prompt_tokens[
i
]
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/cuda/ci_install_dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ mark_step_done "Uninstall Flashinfer"
# Install main package
# ------------------------------------------------------------------------------
# Install the main package
EXTRAS="dev,runai"
EXTRAS="dev,runai,tracing"
if [ -n "$OPTIONAL_DEPS" ]; then
EXTRAS="dev,runai,${OPTIONAL_DEPS}"
EXTRAS="dev,runai,tracing,${OPTIONAL_DEPS}"
fi
echo "Installing python extras: [${EXTRAS}]"
source "$(dirname "$0")/cache_nvidia_wheels.sh"
Expand Down
314 changes: 0 additions & 314 deletions test/manual/test_tracing.py

This file was deleted.

Loading
Loading