Learn how to attach files and URLs to traces and spans for richer observability in Maxim.
maxim-py
>= 3.9.xAttachment Type | Use For | Example Parameter(s) |
---|---|---|
FileAttachment | Local files (audio, images) | path |
UrlAttachment | Remote files or images | url , mime_type (optional) |
FileDataAttachment | Data blobs (bytes in memory) | data , name , mime_type (opt.) |
span
or generation
by replacing trace
with your span or generation object.
name
property.mime_type
parameter.