Skip to content

Commit

Permalink
Add clientName and commandName to HandlerExecutionContext (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Yuan authored Sep 14, 2023
1 parent aa52d8d commit fbfeebe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
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 @@ -499,6 +499,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

0 comments on commit fbfeebe

Please sign in to comment.