Skip to content

Commit f4bec9e

Browse files
authored
Add metric for s3 service (#328)
1 parent 80c4b5e commit f4bec9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/S3Service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class S3Service {
2929
});
3030
}
3131

32+
@Measure({ name: 'putObject' })
3233
async putObjectContent(content: string | Buffer, bucketName: string, key: string) {
3334
return await this.withClient(async (client) => {
3435
return await client.send(
@@ -41,6 +42,7 @@ export class S3Service {
4142
});
4243
}
4344

45+
@Measure({ name: 'headObject' })
4446
async getHeadObject(bucketName: string, key: string) {
4547
return await this.withClient(async (client) => {
4648
return await client.send(

0 commit comments

Comments
 (0)