Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/calm-cows-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/types": patch
---

Add `clientName` and `commandName` to `HandlerExecutionContext`
10 changes: 10 additions & 0 deletions packages/types/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,16 @@ export interface HandlerExecutionContext {
*/
logger?: Logger;

/**
* Name of the service the operation is being sent to.
*/
clientName?: string;

/**
* Name of the operation being executed.
*/
commandName?: string;

/**
* Additional user agent that inferred by middleware. It can be used to save
* the internal user agent sections without overriding the `customUserAgent`
Expand Down