Commit Graph

2 Commits (d03e4f3019f82d34d92dbd8fa4c295ec830b65dd)

Author SHA1 Message Date
Struan Shrimpton 3be09c6d74 telemetry: Fix imports
Logging was missing from __init__.py which broke under mac. This adds
that back in and remove unused imports from other files. The os check
is also moved up to be the first thing we look for since is_google_host
does not work with mac at the moment.

Bug:326277821
Change-Id: I3f28838d367eb9583332fd33ad35d71c0851fe4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6604498
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
1 month ago
Struan Shrimpton b5210fdb74 Add Tracer to the telemetry lib
This wraps the tracer and allows us to capture keyboard interrupts.
This is based on cros builds chromite_tracer:
https://crrev.com/ff59bf4edd7614a50f27e1cc067e0b6f0af62f1e/lib/telemetry/trace/chromite_tracer.py
except the failed_packages removed (and a custom span is subsequently
not needed)

Bug: 326277821
Change-Id: I0ac60797563c777ee00abac1e5924c45fb59df29
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5896032
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Terrence Reilly <treilly@google.com>
9 months ago