Skip to content

productstats: collect nothing until the documented list is approved - #8773

Merged
theomonnom merged 32 commits into
v2.0from
theo/productstats-empty
Nov 25, 2026
Merged

theomonnom merged 32 commits into
v2.0from
theo/productstats-empty

Conversation

@theomonnom

Copy link
Copy Markdown
Member

No description provided.

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.
@theomonnom
theomonnom requested a review from a team as a code owner November 25, 2026 00:51

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

6 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

} else {
admitted.dropped += 1;
}
app.spans.len() >= BATCH_RECORDS

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@theomonnom
theomonnom merged commit 4f30fd3 into v2.0 Nov 25, 2026
10 of 15 checks passed
@theomonnom
theomonnom deleted the theo/productstats-empty branch November 25, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant