pulumi/sdk/python
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
..
cmd Improve tracing support. (#3238) 2019-09-16 14:16:43 -07:00
dist Python Dynamic Providers (#2900) 2019-07-19 10:18:25 -07:00
lib Remove the need for `pandoc` during the build 2019-09-09 11:15:42 -07:00
pkg/version Add license headers 2018-05-22 15:02:47 -07:00
.gitignore add .venv/ to python .gitignore to ignore when using PIPENV_VENV_IN_PROJECT=1 2019-06-19 12:43:04 -07:00
.pylintrc Make 'ResourceOptions.merge' static so downstream clients don't have to manually handle None cases. (#3072) 2019-08-14 15:55:03 -07:00
Makefile Use Python 3 2019-09-13 11:58:23 -07:00
Pipfile Check for valid PB types in serialize_property (#3060) 2019-08-09 16:48:28 -07:00
Pipfile.lock Check for valid PB types in serialize_property (#3060) 2019-08-09 16:48:28 -07:00