Readme Metrics
Readme (readme.com) is a developer Documentation and metrics service. This policy pushes the request/response data to their ingestion endpoint so you can see your Zuplo API traffic in their API calls dashboard.
Configuration
The configuration shows how to configure the policy in the 'policies.json' document.
config/policies.json
{
"name": "my-readme-metrics-inbound-policy",
"policyType": "readme-metrics-inbound",
"handler": {
"module": "$import(@zuplo/runtime)",
"export": "ReadmeMetricsInboundPolicy",
"options": {
"apiKey": "YOUR_API_KEY",
"userLabelPropertyPath": ".sub",
"development": true,
"useFullRequestPath": false
}
}
}
Read more about how policies work