Insert a Log
API Reference: POST /v1/logs
Stores a log object into the Portkey log store
The log object being stored in Portkey follows a specific format comprising of 3 parts:
request
containingurl
provider
headers
,method
(defaults topost
)body
response
containingstatus
(defaults to 200)headers
body
time
(response latency)streamingMode
(defaults to false)
metadata
containing organization, user and request specific information including thetraceId
andspanId
optionally.
Response Format
The API will respond with a 200
acknowledging that the log has been stored and will be available on your dashboard soon.
Last updated