You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "wu-sheng (via GitHub)" <gi...@apache.org> on 2026/10/09 05:25:49 UTC
[PR] Remove the claude-code-otlp receiver [skywalking-ai-sessionizer]
wu-sheng opened a new pull request, #58:
URL: https://github.com/apache/skywalking-ai-sessionizer/pull/58
The `claude-code-otlp` adapter was an OTLP receiver for Claude Code's own exporter. Since #44 it accepted metrics, logs and traces and kept none of them, because every metric asz sends is derived from the landed files. So it fed nothing, and a Claude Code pointed at it lost the metrics only the exporter has.
The SkyWalking OAP reads seven of those metrics when the exporter is pointed at it directly: cost, active time, sessions, lines of code, commits, pull requests and edit decisions. It takes the tokens from asz and does not read the exporter's token metric, so a call is not counted twice. apache/skywalking#14126 gives the OAP page a catalog that names the source of each metric.
## What is removed
- `internal/adapters/claudecodeotlp`, its configuration entry in `Default()` and `asz.yaml`, and its validation.
- In `cmd/asz`: starting the receiver, the receiver counter, and `pushOnly`, the loop that sent what a receiver landed when no local adapter was enabled. The LangSmith receiver joins the pipeline's adapters, so it never needed that loop. `collect` with nothing enabled now stops with "no enabled adapter".
- The receiver half of `tools/test/e2e-collector.sh` (telemetrygen sending to the receiver) and its check in `collector-check`.
- The receiver's pages: the configuration section, the README sentence, and the adapter page section. The `listen` key is now described as the `langsmith-ingest` setting it is, with its default `127.0.0.1:1985`.
## A 0.5.0 configuration
0.5.0's `asz.yaml` lists `claude-code-otlp` with `enabled: false` and `listen: 127.0.0.1:4317`. Such a file still loads and validates. An entry with no `enabled` key stays off, as it was in 0.5.0. An enabled entry lands nothing and prints one line:
```
skipping "claude-code-otlp": asz no longer receives Claude Code's exporter; point the exporter at the receiver that reads it, such as the SkyWalking OAP
```
## Docs
- `adapters/claude-code.md` and `setup/export-otlp.md` say asz does not receive the exporter, and link the OAP section for sending its metrics to the OAP directly.
- `formats/otlp.md` and the parity test describe the captured fixture as what the exporter sent, without naming the receiver.
- `changes.md`: the 0.6.0 entry that said the receiver keeps nothing now says it is removed, and what to point the exporter at.
## Tests
- `TestARemovedReceiverStillLoads`: a 0.5.0 configuration naming the receiver loads and validates, and an entry with no `enabled` key stays off. With the line that keeps it off removed, the test fails.
- `TestReceiverNeedsAnAddress` now holds `langsmith-ingest` to its address.
- The skip line was checked by running the built command against a 0.5.0 configuration. No test runs `main()`.
- `make check` passes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove the claude-code-otlp receiver [skywalking-ai-sessionizer]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng merged PR #58:
URL: https://github.com/apache/skywalking-ai-sessionizer/pull/58
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org