Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
036eb4fe
Unverified
Commit
036eb4fe
authored
Dec 27, 2025
by
ishandhanani
Committed by
GitHub
Dec 27, 2025
Browse files
fix(sglang): remove otel for emebedding models (#5100)
parent
7053bb25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
examples/backends/sglang/launch/agg_embed.sh
examples/backends/sglang/launch/agg_embed.sh
+3
-19
No files found.
examples/backends/sglang/launch/agg_embed.sh
View file @
036eb4fe
...
...
@@ -12,20 +12,15 @@ cleanup() {
trap
cleanup EXIT INT TERM
# Parse command line arguments
ENABLE_OTEL
=
false
while
[[
$#
-gt
0
]]
;
do
case
$1
in
--enable-otel
)
ENABLE_OTEL
=
true
shift
;;
-h
|
--help
)
echo
"Usage:
$0
[OPTIONS]"
echo
"Options:"
echo
" --enable-otel Enable OpenTelemetry tracing"
echo
" -h, --help Show this help message"
echo
""
echo
"Note: System metrics are enabled by default on port 8081 (worker)"
echo
"Note: OpenTelemetry tracing is not yet supported for embedding models"
exit
0
;;
*
)
...
...
@@ -36,23 +31,13 @@ while [[ $# -gt 0 ]]; do
esac
done
# Enable tracing if requested
TRACE_ARGS
=()
if
[
"
$ENABLE_OTEL
"
=
true
]
;
then
export
DYN_LOGGING_JSONL
=
true
export
OTEL_EXPORT_ENABLED
=
1
export
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
=
${
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
:-
http
://localhost:4317
}
TRACE_ARGS+
=(
--enable-trace
--otlp-traces-endpoint
localhost:4317
)
fi
# run ingress
# dynamo.frontend accepts either --http-port flag or DYN_HTTP_PORT env var (defaults to 8000)
OTEL_SERVICE_NAME
=
dynamo-frontend
\
python3
-m
dynamo.frontend &
DYNAMO_PID
=
$!
# run worker
OTEL_SERVICE_NAME
=
dynamo-worker-embedding
DYN_SYSTEM_PORT
=
${
DYN_SYSTEM_PORT
:-
8081
}
\
DYN_SYSTEM_PORT
=
${
DYN_SYSTEM_PORT
:-
8081
}
\
python3
-m
dynamo.sglang
\
--embedding-worker
\
--model-path
Qwen/Qwen3-Embedding-4B
\
...
...
@@ -61,5 +46,4 @@ python3 -m dynamo.sglang \
--tp
1
\
--trust-remote-code
\
--use-sglang-tokenizer
\
--enable-metrics
\
"
${
TRACE_ARGS
[@]
}
"
--enable-metrics
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment