Skip to content

Bug 2053207 - Use glean-sym for places telemetry [ci full]#7468

Open
bendk wants to merge 1 commit into
mozilla:mainfrom
bendk:bdk/push-xpvmlnrlprkk
Open

Bug 2053207 - Use glean-sym for places telemetry [ci full]#7468
bendk wants to merge 1 commit into
mozilla:mainfrom
bendk:bdk/push-xpvmlnrlprkk

Conversation

@bendk

@bendk bendk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Use glean-sym for real, rather than just for test metrics. Added support for Desktop/FOG. Removed the metrics meant to test glean-sym.

Simplified run_maintenance now that we can record metrics in Rust.

Updated chrono to 0.4.45 for compatibility with glean

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

@bendk bendk requested review from badboy and mhammond July 10, 2026 17:57
#
# * Fenix for Android
# This file defines the metrics that are recorded by android for the places component.
# It's no longer used, but we still need to keep it around for probe-scraper reasons.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe this is true, is there a better way to deal with this? If not, it's not that bad and I believe the issue goes away when we move into moz-central?

uniffi = { version = "0.31" }
glean-sym = { git = "https://github.com/mozilla/glean", tag = "v68.0.0", optional = true }
glean = { version = "68.0.1", optional = true }
glean-sym = { git = "https://github.com/mozilla/glean", tag = "v68.0.1", optional = true }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Would it be worth it to publish glean-sym so that we get all the dependencies from the same source?

let timer_id = glean_metrics::places_manager::run_maintenance_prune_time.start();
let res =
self.with_conn(|conn| storage::run_maintenance_prune(conn, db_size_limit, prune_limit));
#[cfg(any(feature = "glean-sym", feature = "glean-fog"))]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Having to feature flag everything like this isn't great. One idea I had would is adding support for a rust-noop format to glean_parser. That would generate the same code as rust/rust-sym, but with the function bodies wouldn't do anything. @badboy what do you think about this? I could try my hand at implementing it if the glean team was busy with other things.

@bendk

bendk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

This seems to be working and I even did a quick check that the FOG stuff works on desktop. However, I'm not sure about a couple things and I left comments for them.

Use glean-sym for real, rather than just for test metrics. Added support
for Desktop/FOG. Removed the metrics meant to test glean-sym.

Simplified `run_maintenance` now that we can record metrics in Rust.

Updated chrono to `0.4.45` for compatibility with `glean`
@bendk bendk force-pushed the bdk/push-xpvmlnrlprkk branch from b7dcf9b to 6a9a5e6 Compare July 10, 2026 18:09
@bendk

bendk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

The tests are failing because pip3 can't find the right glean_parser version. I'm not sure what's happening there, any ideas?

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