Introduction
Pulze allows for extra customization and labeling of requests via the use of headers.
Currently, the following customizations are possible:
- Weights to override App settings (
pulze-weights
) - Labels as a way to tag the requests (
pulze-labels
) - Policies to change the behaviour of the requests (
pulze-policies
) (coming soon!)
You can send a key-value dictionary to store your log with specific labels.
For example, you may decide to store all the tests with a {type: "test"}
label. These labels are
stored inside the log’s request (as a string-string pair) and response and can be used for filtering and searching.
Send a stringified JSON object in the headers:
str()
.You can read more about Labels here.
You can send a key-value dictionary to store your log with specific labels.
For example, you may decide to store all the tests with a {type: "test"}
label. These labels are
stored inside the log’s request (as a string-string pair) and response and can be used for filtering and searching.
Send a stringified JSON object in the headers:
str()
.You can read more about Labels here.
Every request is done using an API Key, which acts like a “password” for a specific App. These in turn have specific Settings which allow Pulze to retrieve the optimal models for your specific request.
Your use-case might include an App which requires fast models, or models with high quality, or low cost, or a mix of those three. These labels are called:
quality
(higher is better)cost
(higher is cheaper)latency
(higher is faster)
You can send headers alongside any request containing said weights and they will superseed the settings for your App:
You can read more about Weights here.
You may decide to perform certain specific actions for this particular log.
For example, you might decide that this log’s content shouldn’t be logged, and that any failed request should be retried up to 1 time:
You can read more about Policies here.
Was this page helpful?