Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/run/storage/storage.cts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
span?.setAttributes({ key, blobKey, previousEtag })

const result = await store.getWithMetadata(blobKey, {
type: 'json',

Check failure on line 44 in src/run/storage/storage.cts

View workflow job for this annotation

GitHub Actions / Lint

No overload matches this call.
etag: previousEtag,
span,
})

const shouldReuseMemoizedBlob = result?.etag && previousEtag === result?.etag
Expand Down Expand Up @@ -80,7 +81,7 @@
const blobKey = await encodeBlobKey(key)
return withActiveSpan(tracer, otelSpanTitle, async (span) => {
span?.setAttributes({ key, blobKey })
const writeResult = await store.setJSON(blobKey, value)
const writeResult = await store.setJSON(blobKey, value, { span })

Check failure on line 84 in src/run/storage/storage.cts

View workflow job for this annotation

GitHub Actions / Lint

Object literal may only specify known properties, and 'span' does not exist in type 'SetOptions'.
if (writeResult?.etag) {
inMemoryCache.set(key, {
data: value,
Expand Down
Loading