Repository navigation
productstats: collect nothing until the documented list is approved - #8773
Conversation
Removes every product statistics metric, its label types and every site that recorded one (provider requests, failures, retries, fallbacks, reconnects and latencies, job starts and ends, process crashes, event-loop stalls, the exporter's drop counters) and the loaded-plugins list with its host function. The pipeline stays: the sink and measure, the Cloud exporter with its credential, timer and flush, its installation, the opt-out and runner detection. With no declaration nothing is recorded, and an export without data points posts nothing. Tests record abi::productstats::testkit declarations, which codegen skips like any test-only module, so the registry holds no lk.productstats metric. docs/telemetry.md lists the statistics to collect as the contract.
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
There was a problem hiding this comment.
Devin Review found 1 new potential issue.
6 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| } else { | ||
| admitted.dropped += 1; | ||
| } | ||
| app.spans.len() >= BATCH_RECORDS |
There was a problem hiding this comment.
🟡 Exporter wake signals for rejected spans
When the application trace queue rejects a span while a full batch is pending, record_app still signals readiness. Exporter::record sends a redundant wake notification for each rejection.
Learn more
The readiness flag controls whether Exporter::record publishes a wake signal. Usage::admit can refuse a span without changing the queue, but the application path still reports readiness when the queue already contains a full batch.
Example: While a full batch is pending and the queue is at its byte limit, each rejected span publishes another notification even though the pending batch already triggered one.
Recommended fix: Return the batch-size check only after app.usage.admit succeeds and the span is pushed. Return false on rejection, as the Cloud span path does when no destination admitted a full batch.
Was this helpful? React with 👍 or 👎 to provide feedback.
…e grouped downstream
No description provided.