Skip to content

Commit a2424f4

Browse files
authored
fix: instrument content-length in .get and .getWithMetadata (#507)
1 parent 3586853 commit a2424f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/blobs/src/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export class Store {
198198
})
199199

200200
span?.setAttributes({
201+
'blobs.response.body.size': res.headers.get('content-length') ?? undefined,
201202
'blobs.response.status': res.status,
202203
})
203204

@@ -328,6 +329,7 @@ export class Store {
328329
const responseETag = res?.headers.get('etag') ?? undefined
329330

330331
span?.setAttributes({
332+
'blobs.response.body.size': res.headers.get('content-length') ?? undefined,
331333
'blobs.response.etag': responseETag,
332334
'blobs.response.status': res.status,
333335
})

0 commit comments

Comments
 (0)