Skip to content

Commit a73648a

Browse files
lint & update unit test
1 parent df21b74 commit a73648a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/sqs-url-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class SqsUrlParser {
2424
* custom URLs. Essentially, we require that the URL should have exactly three parts, delimited by
2525
* /'s (excluding schema), the second part should be a account id consisting of digits, and the third part
2626
* should be a valid queue name, per SQS naming conventions.
27-
*
27+
*
2828
* Unlike parseUrl which only handles new URLs and their queuename parsing, this
2929
* implements its own queue name parsing logic to support multiple URL formats.
3030
*/

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/instrumentation-patch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('InstrumentationPatchTest', () => {
190190
const services: Map<string, any> = extractServicesFromAwsSdkInstrumentation(unpatchedAwsSdkInstrumentation);
191191
expect(() => doExtractKinesisAttributes(services)).not.toThrow();
192192
const kinesisAttributes: Attributes = doExtractKinesisAttributes(services);
193-
expect(kinesisAttributes[AWS_ATTRIBUTE_KEYS.AWS_KINESIS_STREAM_ARN]).toBeUndefined();
193+
expect(kinesisAttributes).not.toHaveProperty(AWS_ATTRIBUTE_KEYS.AWS_KINESIS_STREAM_ARN);
194194
});
195195

196196
it('SNS with patching', () => {

0 commit comments

Comments
 (0)