pulumi/pkg/util/cmdutil
Pat Gavlin 82204230e1
Improve tracing support. (#3238)
* Fix some tracing issues.

- Add endpoints for `startUpdate` and `postEngineEventsBatch` so that
  spans for these invocations have proper names
- Inject a tracing span when walking a plan so that resource operations
  are properly parented
- When handling gRPC calls, inject a tracing span into the call's
  metadata if no span is already present so that resource monitor and
  engine spans are properly parented
- Do not trace client gRPC invocations of the empty method so that these
  calls (which are used to determine server availability) do not muddy
  the trace. Note that I tried parenting these spans appropriately, but
  doing so broke the trace entirely.

With these changes, the only unparented span in a typical Pulumi
invocation is a single call to `getUser`. This span is unparented
because that call does not have a context available. Plumbing a context
into that particular call is surprisingly tricky, as it is often called
by other context-less functions.

* Make tracing support more flexible.

- Add support for writing trace data to a local file using Appdash
- Add support for viewing Appdash traces via the CLI
2019-09-16 14:16:43 -07:00
..
args.go Print help message when too few arguments 2019-08-12 12:45:48 -07:00
child.go Add license headers 2018-05-22 15:02:47 -07:00
child_windows.go Add license headers 2018-05-22 15:02:47 -07:00
console.go Disable interactive-terminal spinner when on a CI machine. (#3070) 2019-08-13 12:50:09 -07:00
console_password.go Do not disable echo when stdin is not a terminal 2018-12-03 16:40:51 -08:00
diag.go Bring back support for the 'auto' value for colorization. (#2023) 2018-10-04 16:20:01 -07:00
exit.go Prevent poorly formatted strings in fatal error messages (#2995) 2019-07-31 17:42:59 -07:00
profile.go Add license headers 2018-05-22 15:02:47 -07:00
spinner.go Disable interactive-terminal spinner when on a CI machine. (#3070) 2019-08-13 12:50:09 -07:00
trace.go Improve tracing support. (#3238) 2019-09-16 14:16:43 -07:00