Items:
- Better usage docs/examples. The invocation context is accessible through the
INVOCATION_CTX
task-local which should be documented in examples and documenation. https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/lambda/src/lib.rs#L95-L97. Note that due to limitations in Tokio's task local implementation, subtasks of the invocation task (which is what we run for customers) can't access this task-local. This is a tempoary limitation. - Use
tracing
for internal logging/instrumentation. Each interaction with the Runtime APIs should be adebug_span!
and spawning a new task should adebug_span!
. davidbarky@ should handle this. - Slightly refactor the simulated endpoint logic to be driven by an Rng rather than a hard-coded UUID.
- We should add an init_failure simulated endpoint and propogate tasks out.
- The path routing logic can be cleaned up a bit more by using recently-stabilized Rust features.