-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add server side HTTP logging layer #1550
Conversation
A new generated diff is ready to view.
A new doc preview is ready to view. |
) | ||
|
||
// Models the ways headers can be bound and sensitive | ||
sealed class HeaderSensitivity( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does bound
mean in this context?
...ftware/amazon/smithy/rust/codegen/server/smithy/generators/ServerHttpSensitivityGenerator.kt
Show resolved
Hide resolved
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment about some missing documentation in the model. LGTM.
fn make_display(&self, source: T) -> Self::Target { | ||
U::make(self, source) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to leave it like it is. It was NIT anyway :)
A new generated diff is ready to view.
A new doc preview is ready to view. |
❤️ |
Motivation and Context
#1536
Description
MakeFmt
trait which modifiesDisplay
/Debug
implementations.http
wrappers which modify theDebug
andDisplay
implementations based on closures marking sensitivity. Each wrapper has an associatedMakeFmt
impl.InstrumentOperation
tower::Service which logs requests and responses. Accepts aMakeFmt
for each potentially sensitive component of the request/response.InstrumentationOperation
to theOperationHandler
usingMakeFmt
s using the marker closures.