Open hlbarber opened 1 year ago
Something to keep in mind, from https://github.com/awslabs/smithy-rs/pull/2524#issuecomment-1491955247
We should also think about having a mechanism to test that the framework is error logging what we expect it to; error logs are very important.
Doing so seems terribly complicated / janky. On one hand the easiest I've found is leveraging
tracing_test
; on the other hand, we run integration tests for this binary by spawning a child process viaCommand::cargo_bin("pokemon-service")
, so collectingstdout
/stderr
might suffice.
This would be an easy thing to test if we had a plugin to generate application binaries using generated SDKs.
At the moment
smithy-rs
server does not have great instrumentation coverage.We should identify key points in the request/response lifecycle to emit events/open spans.
Care MUST be taken to ensure that we do not log anything that could be sensitive.