[ffx] Add tracing::instrument attributes

Adds spans to functions that use tracing.

The primary advantage is that log message will provide the name of the function. A secondary advantage is that, when we switch to a more sophisticated log-viewer such as Jaeger,we will automatically benefit from the span structure

(Also removes "level = info" where it was specified, since that is the default.)

Fixed: 119970
Change-Id: I0c66cf4879c475ba846c52aa86c6d45bef48f26c
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/797943
Reviewed-by: Casey Dahlin <sadmac@google.com>
Reviewed-by: Ben Keller <galbanum@google.com>
Commit-Queue: Steven Grady <slgrady@google.com>
15 files changed
tree: 0e248906e4b173ba3072f6e3024a965f74bca66a
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gitmodules
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. fuchsia.code-workspace
  28. LICENSE
  29. OWNERS
  30. PATENTS
  31. pyrightconfig.json
  32. README.md
  33. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.