Documentation Index
Fetch the complete documentation index at: https://docs.apilens.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request Item Fields
| Field | Type | Required | Notes |
|---|---|---|---|
timestamp | ISO datetime | Yes | UTC recommended |
environment | string | Yes | Example: production, staging |
method | string | Yes | HTTP method, normalized uppercase |
path | string | Yes | Endpoint path (ex. /v1/orders) |
status_code | integer | Yes | HTTP status code |
response_time_ms | number | Yes | Duration in milliseconds |
request_size | integer | Yes | Request payload bytes |
response_size | integer | Yes | Response payload bytes |
ip_address | string | No | Optional source IP |
user_agent | string | No | Consumer identifier fallback |
request_payload | string | No | Raw request body sample (truncated server-side) |
response_payload | string | No | Raw response body sample (truncated server-side) |
Batch Envelope
Validation Notes
- Keep batch size under
1000 - Ensure timestamps are valid ISO-8601
- Use stable path format for accurate endpoint grouping
- Ensure status codes are in valid HTTP ranges
- Payload fields are stored as text and truncated to safe limits
Recommended SDK Normalization
Before sending telemetry from SDK:- Uppercase method
- Remove query string from path
- Convert durations to integer milliseconds
- Clamp negative sizes/timings to
0