Requests a presigned upload URL, uploads the content with exponential-backoff
retries, and reports completion. The media may be associated with a trace /
observation (pass UploadMediaParams.traceId) or stand alone (e.g.
dataset item media), in which case the trace context is omitted.
If the media has already been uploaded (server returns no upload URL), this
resolves without re-uploading.
Uploads a LangfuseMedia to Langfuse.
Requests a presigned upload URL, uploads the content with exponential-backoff retries, and reports completion. The media may be associated with a trace / observation (pass UploadMediaParams.traceId) or stand alone (e.g. dataset item media), in which case the trace context is omitted.
If the media has already been uploaded (server returns no upload URL), this resolves without re-uploading.