SpanConfig
SpanConfigDict
get_span_config_dict
| Name | Description |
|---|---|
config | The config to convert. |
Span
__init__
| Name | Description |
|---|---|
config | The config to initialize the span with. |
writer | The writer to use. |
span
| Name | Description |
|---|---|
config | The config to add the span to. |
input
| Name | Description |
|---|---|
input | The input to set for this span. |
input_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to set the input for. |
input | The input to set for this span. |
add_error
| Name | Description |
|---|---|
config | The config to add the error to. |
| Name | Description |
|---|---|
[Error](/sdk/python/references/models/prompt) | The error that was added. |
error_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the error to. |
config | The config to add the error to. |
| Name | Description |
|---|---|
[Error](/sdk/python/references/models/prompt) | The error that was added. |
span_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the span to. |
config | The config to add the span to. |
| Name | Description |
|---|---|
[Span](/sdk/python/references/logger/components/span) | The span that was added. |
generation
| Name | Description |
|---|---|
config | The config to add the generation to. |
| Name | Description |
|---|---|
[Generation](/sdk/python/references/logger/components/generation) | The generation that was added. |
tool_call
| Name | Description |
|---|---|
config | The config to add the tool call to. |
| Name | Description |
|---|---|
[ToolCall](/sdk/python/references/models/prompt) | The tool call that was added. |
tool_call_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the tool call to. |
config | The config to add the tool call to. |
| Name | Description |
|---|---|
[ToolCall](/sdk/python/references/models/prompt) | The tool call that was added. |
generation_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the generation to. |
config | The config to add the generation to. |
| Name | Description |
|---|---|
[Generation](/sdk/python/references/logger/components/generation) | The generation that was added. |
add_attachment
| Name | Description |
|---|---|
attachment | The attachment to add. |
add_attachment_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
span_id | The ID of the span to add the attachment to. |
attachment | The attachment to add. |
retrieval
| Name | Description |
|---|---|
config | The config to add the retrieval to. |
| Name | Description |
|---|---|
[Retrieval](/sdk/python/references/logger/components/retrieval) | The retrieval that was added. |
retrieval_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the retrieval to. |
config | The config to add the retrieval to. |
| Name | Description |
|---|---|
[Retrieval](/sdk/python/references/logger/components/retrieval) | The retrieval that was added. |
end_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to end. |
data | The data to add to the span. |
add_tag_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the tag to. |
key | The key of the tag. |
value | The value of the tag. |
event_
| Name | Description |
|---|---|
writer | The writer to use. |
span_id | The id of the span to add the event to. |
id | The id of the event. |
name | The name of the event. |
tags | The tags of the event. |
metadata | The metadata of the event. |