Skip to content

new handler design : payment models #84

@baywet

Description

@baywet

The service is slowly rolling our payment models for large volume or highly value added APIs. As part of this roll out, client apps need to send the payment model they are using to track consumption as a query parameter.
Instead of requiring client apps to set it on a per request basis, we could include a middleware handler that'd set it for any request, based on the client app configuration. (something like client.WithPaymentModel(model) would configure the client).
Considerations:

  • The model might be set on a per request basis, this handler shouldn't override that.
  • This handler should provide the ability to be disabled through a request option on a per request basis.
  • This handler should be disabled by default.
  • This handler should create an observability span see Define requirements for Logging Handler #9
  • Some APIs might not support receiving the query parameter, maybe work with a list of path patterns for the handler to operate on?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions