Learn about the key concepts of Maxim’s distributed tracing for AI applications.
Field | Description |
---|---|
Timestamp | The start time of the log |
Input | The user’s prompt or query |
Output | The final response |
Model | The AI models seen within the trace (e.g., gpt-4o) |
Tokens | Token count for the whole trace |
Cost | The cost for the whole trace in USD |
Latency | Response time in milliseconds |
User feedback | User feedback for a trace (if available) |
Tags | Tags associated with the log entry |
Property | Description |
---|---|
id | Unique identifier for the trace; this usually can be your request id. |
name (optional) | Name of the trace; you can keep it same as your API call. i.e. chatQuery |
tags (optional) | Key-value pairs which you can use for filtering on the dashboard. There is no limit on the number of tags or the size of the string, although lower amounts are better and faster for search performance specific to your repo. |
input (optional) | The user’s prompt or query. |
output (optional) | This is the final response your API sends back. |
Property | Description |
---|---|
id | Unique identifier for the span; it can be uuid() for each new trace. This has to be unique across all elements in a trace. If you these are duplicated, data gets overwritten. |
name | Name of the span; you can keep it same as your API call. i.e. chatQuery |
tags | These are span specific tags. |
spanId | Parent span id; these are automatically generated when you call span.addSpan() . |
Property | Description |
---|---|
id | Unique identifier for the event; this has to be unique in a trace across all elements |
name | Name of the event. you can keep it same as your API call. i.e. chatQuery |
tags | These are event specific tags. |
Property | Description |
---|---|
id | Unique identifier for the generation; this has to be unique in a trace. |
name | Name of the generation; it can be specific to your workflow intent detection or final summarization call. |
tags | These are generation specific tags. |
messages | The messages you are sending to LLM as input. |
model | Model that is being used for this LLM call. |
model_parameters | The model parameters that you are setting up. This is a key-value pair; you can pass any model parameter. |
error | You can pass LLM error if it has occurred. You can filter all logs with LLM error on the dashboard using filters. |
result | Result object coming from the LLM. |
Property | Description |
---|---|
id | Unique identifier for the retrieval; this has to be unique in a trace. |
name | Name of the retrieval; it can be specific to your workflow intent detection or final summarization call . |
tags | These are retrieval specific tags. |
input | Input used to fetch relevant chunks from your knowledge base |
output | Array of chunks returned by the knowledge base |
Property | Description |
---|---|
id | Unique identifier for the tool call; this has to be unique in a trace (can be found in the tool call reponse of the LLM). |
name | Name of the tool call. |
description | Description of the tool call. |
args | Arguments passed to the tool call, these are tool specific arguments. |
result | Result returned by the tool call. |