Skip to content

Conversation

@oliver-kriska
Copy link
Contributor

Allows users to inject custom Tesla middleware into the HTTP client without modifying the library. Users can now pass additional_middlewares option when creating a Knock client to add logging, retry logic, or other custom behavior.

Middleware can be specified as either a module atom or a tuple with options (e.g., Tesla.Middleware.Retry or {Tesla.Middleware.Logger, level: :debug}).

@oliver-kriska oliver-kriska requested a review from a team as a code owner November 17, 2025 09:06
@oliver-kriska oliver-kriska requested review from meryldakin and thomaswhyyou and removed request for a team November 17, 2025 09:06
Allows users to inject custom Tesla middleware into the HTTP client without modifying the library. Users can now pass additional_middlewares option when creating a Knock client to add logging, retry logic, or other custom behavior.

Middleware can be specified as either a module atom or a tuple with options (e.g., Tesla.Middleware.Retry or {Tesla.Middleware.Logger, level: :debug}).
@cjbell cjbell merged commit 439ee40 into knocklabs:main Nov 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants