Trace functionality for Components integration.
Name | Description |
---|---|
config | Either a TraceConfig object or a TraceConfigDict dictionary. |
Name | Description |
---|---|
config | Configuration for the trace, either as a TraceConfig object or a TraceConfigDict. |
writer | The LogWriter instance to use for writing log entries. |
Name | Description |
---|---|
input | The input string to set. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to update. |
input | The input string to set. |
Name | Description |
---|---|
output | The output string to set. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to update. |
output | The output string to set. |
Name | Description |
---|---|
config | Configuration for the generation. |
Name | Description |
---|---|
config | Configuration for the tool call. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the tool call to. |
config | Configuration for the tool call. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the generation to. |
config | Configuration for the generation. |
Name | Description |
---|---|
config | Configuration for the error. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the error to. |
config | Configuration for the error. |
Name | Description |
---|---|
config | Configuration for the retrieval. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the retrieval to. |
config | Configuration for the retrieval. |
Name | Description |
---|---|
config | Configuration for the span. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the span to. |
config | Configuration for the span. |
Name | Description |
---|---|
feedback | The feedback to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the feedback to. |
feedback | The feedback to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the tag to. |
key | The tag key. |
value | The tag value. |
Name | Description |
---|---|
attachment | The attachment to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the attachment to. |
attachment | The attachment to add. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to end. |
data | Additional data to include in the end event. |
Name | Description |
---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the event to. |
id | The ID of the event. |
event | The name of the event. |
tags | Optional tags to associate with the event. |
metadata | Optional metadata to include with the event. |