Skip to content

Commit 22b8497

Browse files
committed
only add httpStatus attribute if available
1 parent 6c39f95 commit 22b8497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema/GetSchemaTask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class GetPrivateSchemasTask extends GetSchemaTask {
100100
} catch (error) {
101101
const { category, httpStatus } = classifyAwsError(error);
102102
this.telemetry.count('getSchemas.error', 1, {
103-
attributes: { category, httpStatus: httpStatus ?? 0 },
103+
attributes: { category, httpStatus },
104104
});
105105
this.logger.error(error, 'Failed to get private schemas');
106106
throw error;

0 commit comments

Comments
 (0)