-
Notifications
You must be signed in to change notification settings - Fork 272
feat: add tracing to docker compose #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1503c37
add tracing to docker compose
JaredforReal 8388fcf
Merge branch 'main' into tracing
JaredforReal cb37a0a
Merge branch 'main' into tracing
JaredforReal 3c310c5
make: ensure docker-compose-down stops profiled services; add down-co…
JaredforReal 5b7357e
add jaeder UI to dahsboard
JaredforReal 1ca9ba6
Merge branch 'main' into tracing
JaredforReal 0599383
fix some network bug
JaredforReal 789fc47
refine layout
JaredforReal 4181658
revert golang.mk
JaredforReal e397227
delete tracing quickstart
JaredforReal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # Local Tracing Configuration (Jaeger + Always-On Sampling) | ||
| # This config is used by tools/tracing/docker-compose.tracing.yaml via CONFIG_FILE. | ||
|
|
||
| bert_model: | ||
| model_id: sentence-transformers/all-MiniLM-L12-v2 | ||
| threshold: 0.6 | ||
| use_cpu: true | ||
|
|
||
| semantic_cache: | ||
| enabled: true | ||
| backend_type: "memory" | ||
| similarity_threshold: 0.8 | ||
| max_entries: 1000 | ||
| ttl_seconds: 3600 | ||
| eviction_policy: "fifo" | ||
|
|
||
| tools: | ||
| enabled: true | ||
| top_k: 3 | ||
| similarity_threshold: 0.2 | ||
| tools_db_path: "config/tools_db.json" | ||
| fallback_to_empty: true | ||
|
|
||
| prompt_guard: | ||
| enabled: true | ||
| use_modernbert: true | ||
| model_id: "models/jailbreak_classifier_modernbert-base_model" | ||
| threshold: 0.7 | ||
| use_cpu: true | ||
| jailbreak_mapping_path: "models/jailbreak_classifier_modernbert-base_model/jailbreak_type_mapping.json" | ||
|
|
||
| vllm_endpoints: | ||
| - name: "endpoint1" | ||
| address: "127.0.0.1" | ||
| port: 8000 | ||
| weight: 1 | ||
|
|
||
| model_config: | ||
| "openai/gpt-oss-20b": | ||
| reasoning_family: "gpt-oss" | ||
| preferred_endpoints: ["endpoint1"] | ||
| pii_policy: | ||
| allow_by_default: true | ||
|
|
||
| classifier: | ||
| category_model: | ||
| model_id: "models/category_classifier_modernbert-base_model" | ||
| use_modernbert: true | ||
| threshold: 0.6 | ||
| use_cpu: true | ||
| category_mapping_path: "models/category_classifier_modernbert-base_model/category_mapping.json" | ||
| pii_model: | ||
| model_id: "models/pii_classifier_modernbert-base_presidio_token_model" | ||
| use_modernbert: true | ||
| threshold: 0.7 | ||
| use_cpu: true | ||
| pii_mapping_path: "models/pii_classifier_modernbert-base_presidio_token_model/pii_type_mapping.json" | ||
|
|
||
| categories: | ||
| - name: math | ||
| system_prompt: "You are a mathematics expert. Provide step-by-step solutions." | ||
| model_scores: | ||
| - model: openai/gpt-oss-20b | ||
| score: 1.0 | ||
| use_reasoning: true | ||
| - name: other | ||
| system_prompt: "You are a helpful assistant." | ||
| model_scores: | ||
| - model: openai/gpt-oss-20b | ||
| score: 0.7 | ||
| use_reasoning: false | ||
|
|
||
| default_model: openai/gpt-oss-20b | ||
|
|
||
| reasoning_families: | ||
| gpt-oss: | ||
| type: "reasoning_effort" | ||
| parameter: "reasoning_effort" | ||
|
|
||
| default_reasoning_effort: high | ||
|
|
||
| api: | ||
| batch_classification: | ||
| max_batch_size: 100 | ||
| concurrency_threshold: 5 | ||
| max_concurrency: 8 | ||
| metrics: | ||
| enabled: true | ||
|
|
||
| observability: | ||
| tracing: | ||
| enabled: true | ||
| provider: "opentelemetry" | ||
| exporter: | ||
| type: "otlp" | ||
| endpoint: "jaeger:4317" # Jaeger gRPC OTLP endpoint inside compose network | ||
| insecure: true | ||
| sampling: | ||
| type: "always_on" # Always sample in local/dev for easy debugging | ||
| rate: 1.0 | ||
| resource: | ||
| service_name: "vllm-semantic-router" | ||
| service_version: "dev" | ||
| deployment_environment: "local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.