Repository navigation
Add a default-off metrics example plugin - #19
Draft
bradseiler wants to merge 1 commit into
Draft
bradseiler wants to merge 1 commit into
bradseiler wants to merge 1 commit into
Conversation
Co-authored-by: Harrington <91868d0cc0b8144564e350ce0a9e46447f654ad3fe93b23e39fe71314c911781> Signed-off-by: Brad Seiler <seiler@squareup.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
xyz.block.metrics, an example plugin with opt-in collection, Counts and Linked modes, and a community allowlist that also gates the search subscription and optional tracing. The plugin projects supported fields, keeps raw query text out of records and previews, and bounds its in-memory buffer and batches. A higher attempt for the same query stays one logical query. The default manifest has no network origins. Export requires a distributor build with an explicit origin and the protected desktop host API.Counts omits identifiers. Navigation sessions retain their group and position counts and are excluded from message search rates. Search collection on allowed communities can cause the host to attach ephemeral join IDs, and optional Linked tracing adds trace context.
Validation
81e1c6e2179d8c17d08062bbee43f2d82ebb7472, treebbe8088c743992f003062235eef74c8cfa97ff35.Draft feedback and rollout
The host currently omits community from UI timings and does not explicitly confirm message-search dispatch for empty or failed searches. The plugin drops unscoped timings and labels its incomplete search coverage. Native desktop, live export and receiver joins remain to be validated. The example defaults to off and is unlisted. Rollback is disable, uninstall or revert.
Post-push
pnpm run check-plugin metricspassed and confirmed the built files are committed and pushed.