Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install jq (ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y jq
- name: Validate manifests
run: ./scripts/validate-manifests.sh
- name: Fixture replay
run: ./scripts/replay-fixtures.sh
- uses: astral-sh/setup-uv@v4
- name: Run test suite
run: make test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
__pycache__/
*.pyc
*.pyo
.pytest_cache/
.venv/
*.egg-info/

# local state
.claude/
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lint:
if command -v shfmt >/dev/null 2>&1; then shfmt -d plugins/trace/hooks/*.sh plugins/trace/setup.sh scripts/*.sh; else echo "shfmt not installed, skipping"; fi

test: validate lint
uv run --extra dev pytest
./scripts/replay-fixtures.sh

smoke:
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The plugin hooks into Claude Code's lifecycle and emits [OTLP/HTTP JSON](docs/ot

- Claude Code CLI installed
- A PromptLayer account and API key ([dashboard.promptlayer.com](https://dashboard.promptlayer.com))
- `jq`, `curl`, `uuidgen`, and `python3` available in your shell
- `python3` available in your shell
- **macOS** or **Linux** (tested on Ubuntu)

## Configuration
Expand All @@ -61,17 +61,23 @@ This plugin is **OpenTelemetry (OTLP/HTTP JSON)** compatible:

- **Open standard** — traces follow the [OTLP specification](https://opentelemetry.io/docs/specs/otlp/), not a vendor-specific format
- **Portable** — swap or fan-out to any OTLP-compatible backend (Datadog, Honeycomb, Grafana Tempo, etc.) by changing one endpoint URL
- **No SDK lock-in** — the plugin uses plain `curl` to send `ExportTraceServiceRequest` payloads; no proprietary client libraries required
- **No SDK lock-in** — the plugin sends `ExportTraceServiceRequest` payloads directly over OTLP/HTTP JSON using the Python standard library; no proprietary client libraries required

## Troubleshooting

See [docs/troubleshooting.md](docs/troubleshooting.md).

## Local Development

Install Python dev tooling with:

```bash
uv sync --extra dev
```

```bash
make dev # Symlink repo as marketplace source, install plugin, run setup
make uninstall # Remove local install and cleanup artifacts
make test # Validate manifests + lint + fixture replay
make test # Validate manifests + lint + pytest unit tests + fixture replay
make smoke # E2E smoke test (requires ANTHROPIC_API_KEY)
```
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions plugins/trace/hooks/hook_utils.py

This file was deleted.

Loading
Loading