Skip to content

feat(telemetry): send repo_hash and commits_count in events - #178

Merged
BryanFRD merged 2 commits into
mainfrom
feat/telemetry-repo-hash-commits-count
Mar 31, 2026
Merged

BryanFRD merged 2 commits into
mainfrom
feat/telemetry-repo-hash-commits-count

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

Summary

  • Add repo_hash to telemetry events: SHA-256 hash of git remote get-url origin (64 hex chars, fully anonymous)
  • Add commits_count to release and version_bump events
  • Monorepo with N packages = 1 unique repo_hash (same remote)
  • Add sha2 and hex as dependencies

Companion PR: FerrFlow-Org/Application#103

@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/monorepo.rs 0.00% 12 Missing ⚠️
src/telemetry.rs 0.00% 11 Missing ⚠️
src/config.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@BryanFRD
BryanFRD merged commit 89614c8 into main Mar 31, 2026
11 checks passed
@BryanFRD
BryanFRD deleted the feat/telemetry-repo-hash-commits-count branch March 31, 2026 10:43

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Benchmark

Details
Benchmark suite Current: 1c28e2c Previous: 21f3fd9 Ratio
commit_parsing/100 17506 ns/iter (± 513) 17519 ns/iter (± 107) 1.00
commit_parsing/1000 175518 ns/iter (± 682) 174955 ns/iter (± 1827) 1.00
commit_parsing/10000 1817190 ns/iter (± 25128) 1825757 ns/iter (± 5408) 1.00
changelog/build_50 8074 ns/iter (± 86) 8234 ns/iter (± 109) 0.98
changelog/build_500 71866 ns/iter (± 723) 72566 ns/iter (± 368) 0.99
version_files/toml_read 8411 ns/iter (± 47) 8453 ns/iter (± 323) 1.00
version_files/toml_write 167156 ns/iter (± 22086) 139088 ns/iter (± 10605) 1.20
version_files/json_read 5452 ns/iter (± 150) 5129 ns/iter (± 35) 1.06
version_files/json_write 163531 ns/iter (± 11312) 132066 ns/iter (± 8920) 1.24
version_files/xml_read 5126 ns/iter (± 353) 4938 ns/iter (± 38) 1.04
version_files/xml_write 181546 ns/iter (± 19809) 138898 ns/iter (± 15084) 1.31
version_files/gradle_read 4973 ns/iter (± 96) 4954 ns/iter (± 97) 1.00
version_files/gradle_write 164344 ns/iter (± 12795) 129815 ns/iter (± 9193) 1.27
config_loading/single 10335 ns/iter (± 99) 10142 ns/iter (± 124) 1.02
config_loading/mono_10 15612 ns/iter (± 1384) 15134 ns/iter (± 117) 1.03
config_loading/mono_50 39993 ns/iter (± 1154) 38790 ns/iter (± 405) 1.03

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 1c28e2c Previous: 21f3fd9 Ratio
version_files/toml_write 167156 ns/iter (± 22086) 139088 ns/iter (± 10605) 1.20
version_files/json_write 163531 ns/iter (± 11312) 132066 ns/iter (± 8920) 1.24
version_files/xml_write 181546 ns/iter (± 19809) 138898 ns/iter (± 15084) 1.31
version_files/gradle_write 164344 ns/iter (± 12795) 129815 ns/iter (± 9193) 1.27

This comment was automatically generated by workflow using github-action-benchmark.

BryanFRD added a commit that referenced this pull request Apr 22, 2026
* feat(telemetry): add repo_hash and commits_count to event payload

* feat(telemetry): pass repo_hash and commits_count from all call sites
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