POST
/
api
/
parea
/
v1
/
trace_log
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/trace_log' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <<PAREA_API_KEY>>' \
--data '{
    "trace_id":"1234",
    "start_timestamp":"2021-07-23 13:48:34",
    "trace_name":"test",
    "inputs": {
        "x": "Golang",
        "y": "Fiber"
    },
    "status": "success",
    "output": "Some logged output",
    "metadata": {"purpose": "testing"}
    "end_timestamp":"2021-07-23 13:48:34",
}'
    200

Body

trace_id
string

Unique identifier for a set of logs to be associated as a chain.

trace_name
string

Name to identify a trace. Will be visible in logs for filtering.

end_user_identifier
string

Unique identifier for a end-user. Will be visible in logs for filtering.

evaluation_metric_ids
list

A list of evaluation metric ids to associate with this completion.

metadata
dict

Any additional metadata to record.

target
string

The target or “gold standard” completion response.

tags
list

List of string tags to associate with this completion.

inputs
dict

Key value pairs for prompt template. The keys should match the names of the deployed prompt template’s variables.