docs: expand OTEL wiring section with receiver flags and both protocols
Add FABRIC-side receiver setup (--otlp-grpc, --otlp-http) with port table covering both gRPC (4317) and HTTP (4318) protocols. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
a5eae21f08
commit
adb3d68366
1 changed files with 22 additions and 2 deletions
24
README.md
24
README.md
|
|
@ -90,8 +90,28 @@ needle run ...
|
|||
|
||||
| Variable | Default | Notes |
|
||||
|----------|---------|-------|
|
||||
| `OTEL_EXPORTER_OTLP_ENDPOINT` | — | FABRIC's gRPC listener (port `4317` by default) |
|
||||
| `OTEL_EXPORTER_OTLP_PROTOCOL` | `grpc` | Use `grpc` for FABRIC's primary OTLP/gRPC receiver |
|
||||
| `OTEL_EXPORTER_OTLP_ENDPOINT` | — | FABRIC's OTLP listener address |
|
||||
| `OTEL_EXPORTER_OTLP_PROTOCOL` | `grpc` | `grpc` (port **4317**) or `http/protobuf` (port **4318**) |
|
||||
|
||||
### Starting the FABRIC receiver
|
||||
|
||||
FABRIC must be started with an OTLP listener for live telemetry to flow. The `--otlp-grpc` and `--otlp-http` flags enable the receiver:
|
||||
|
||||
```bash
|
||||
# gRPC receiver (recommended — lower latency, NEEDLE default)
|
||||
fabric tui --otlp-grpc 0.0.0.0:4317
|
||||
|
||||
# HTTP receiver (alternative)
|
||||
fabric web --otlp-http 0.0.0.0:4318
|
||||
|
||||
# Both sources merged (JSONL tail + OTLP live)
|
||||
fabric tui --source ~/.needle/logs/ --otlp-grpc :4317
|
||||
```
|
||||
|
||||
| Receiver flag | Default port | Protocol |
|
||||
|---------------|-------------|----------|
|
||||
| `--otlp-grpc` | `4317` | OTLP/gRPC ( tonic) |
|
||||
| `--otlp-http` | `4318` | OTLP/HTTP (protobuf + JSON) |
|
||||
|
||||
Everything stays on your machine — FABRIC is a local collector, not a third-party service. Telemetry is read-only: FABRIC ingests spans/logs/metrics for display but never writes back to NEEDLE or modifies worker state.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue