[model-gateway][tracing]: implement request tracing using OpenTelemetry with trace context propagation (HTTP) #51445
Workflow file for this run
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
| name: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install pre-commit hook | |
| run: | | |
| python -m pip install pre-commit | |
| pre-commit install | |
| - name: Run pre-commit checks | |
| run: SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure | |
| - name: Run sgl-kernel clang-format checks | |
| uses: DoozyX/[email protected] | |
| with: | |
| source: sgl-kernel | |
| extensions: h,c,cpp,hpp,cu,cuh,cc | |
| clangFormatVersion: 18 | |
| style: file | |
| - name: Check proto files are in sync | |
| run: | | |
| if ! diff -q python/sglang/srt/grpc/sglang_scheduler.proto sgl-router/src/proto/sglang_scheduler.proto; then | |
| echo "❌ ERROR: Proto files are out of sync!" | |
| echo "" | |
| echo "The following files must be kept identical:" | |
| echo " - python/sglang/srt/grpc/sglang_scheduler.proto" | |
| echo " - sgl-router/src/proto/sglang_scheduler.proto" | |
| echo "" | |
| echo "Please ensure both files have the same content." | |
| echo "" | |
| echo "Differences:" | |
| diff python/sglang/srt/grpc/sglang_scheduler.proto sgl-router/src/proto/sglang_scheduler.proto || true | |
| exit 1 | |
| fi |