Skip to content

feat(otelbench): improve traces handling #2

feat(otelbench): improve traces handling

feat(otelbench): improve traces handling #2

Workflow file for this run

name: 'Benchmark'
on:
push:
branches: [main]
workflow_dispatch:
pull_request:
env:
REGISTRY: ghcr.io
WORKDIR: dev/local/ch-bench-read
COMPOSE_FILE: docker-compose.ci.yml
jobs:
PromQL:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
cache: false
- uses: docker/setup-buildx-action@v3
- name: Docker log in
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Get Go environment
id: go-env
run: |
echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV
echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV
echo "goversion=$(go env GOVERSION)" >> $GITHUB_ENV
- name: Set up cache
uses: actions/cache@v3
with:
path: |
${{ env.cache }}
${{ env.modcache }}
key: Benchmark-${{ runner.os }}-go-${{ env.goversion }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
Benchmark-${{ runner.os }}-go-${{ env.goversion }}
- name: Go build
env:
CGO_ENABLED: 0
run: |
go build -v ./cmd/oteldb
go build -v ./cmd/chotel
- name: Start
working-directory: ${{ env.WORKDIR }}
run: docker compose up -d
- name: Test
working-directory: ${{ env.WORKDIR }}
run: go run github.com/go-faster/oteldb/cmd/otelbench promql bench -i testdata/node-exporter-selected.promql.yml --trace