feat(util-genai): event log → trace converter, passthrough & total_tokens #197
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-claude-plugin: | |
| name: Test opentelemetry-instrumentation-claude | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: opentelemetry-instrumentation-claude/package-lock.json | |
| - name: Install dependencies | |
| working-directory: opentelemetry-instrumentation-claude | |
| run: npm ci | |
| - name: Security audit | |
| working-directory: opentelemetry-instrumentation-claude | |
| run: npm audit --audit-level=high --registry=https://registry.npmjs.org | |
| continue-on-error: true | |
| - name: Run tests | |
| working-directory: opentelemetry-instrumentation-claude | |
| run: npm test -- --coverage | |
| build-openclaw-plugin: | |
| name: Build opentelemetry-instrumentation-openclaw | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: opentelemetry-instrumentation-openclaw/package-lock.json | |
| - name: Install dependencies | |
| working-directory: opentelemetry-instrumentation-openclaw | |
| run: npm ci | |
| - name: Security audit | |
| working-directory: opentelemetry-instrumentation-openclaw | |
| run: npm audit --audit-level=high --registry=https://registry.npmjs.org | |
| continue-on-error: true | |
| - name: Build | |
| working-directory: opentelemetry-instrumentation-openclaw | |
| run: npm run build | |
| build-and-test-util-genai: | |
| name: Build & Test opentelemetry-util-genai | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: opentelemetry-util-genai/package-lock.json | |
| - name: Install dependencies | |
| working-directory: opentelemetry-util-genai | |
| run: npm ci | |
| - name: Security audit | |
| working-directory: opentelemetry-util-genai | |
| run: npm audit --audit-level=high --registry=https://registry.npmjs.org | |
| - name: Build | |
| working-directory: opentelemetry-util-genai | |
| run: npm run build | |
| - name: Run tests | |
| working-directory: opentelemetry-util-genai | |
| run: npm test |