File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
plugins/node/opentelemetry-instrumentation-aws-sdk/test Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,15 @@ describe('Kinesis', () => {
6666 . promise ( ) ;
6767
6868 const testSpans = getTestSpans ( ) ;
69- console . log ( testSpans . length ) ;
7069 const creationSpans = testSpans . filter ( ( s : ReadableSpan ) => {
7170 return s . name === 'Kinesis.CreateStream' ;
7271 } ) ;
7372 expect ( creationSpans . length ) . toBe ( 1 ) ;
74- const publishSpan = creationSpans [ 0 ] ;
75- expect ( publishSpan . attributes [ _AWS_KINESIS_STREAM_NAME ] ) . toBe (
73+ const creationSpan = creationSpans [ 0 ] ;
74+ expect ( creationSpan . attributes [ _AWS_KINESIS_STREAM_NAME ] ) . toBe (
7675 dummyStreamName
7776 ) ;
78- expect ( publishSpan . kind ) . toBe ( SpanKind . CLIENT ) ;
77+ expect ( creationSpan . kind ) . toBe ( SpanKind . CLIENT ) ;
7978 } ) ;
8079 } ) ;
8180} ) ;
Original file line number Diff line number Diff line change @@ -63,14 +63,13 @@ describe('S3', () => {
6363 . promise ( ) ;
6464
6565 const testSpans = getTestSpans ( ) ;
66- console . log ( testSpans . length ) ;
67- const creationSpans = testSpans . filter ( ( s : ReadableSpan ) => {
66+ const listObjectsSpans = testSpans . filter ( ( s : ReadableSpan ) => {
6867 return s . name === 'S3.ListObjects' ;
6968 } ) ;
70- expect ( creationSpans . length ) . toBe ( 1 ) ;
71- const publishSpan = creationSpans [ 0 ] ;
72- expect ( publishSpan . attributes [ _AWS_S3_BUCKET ] ) . toBe ( dummyBucketName ) ;
73- expect ( publishSpan . kind ) . toBe ( SpanKind . CLIENT ) ;
69+ expect ( listObjectsSpans . length ) . toBe ( 1 ) ;
70+ const listObjectsSpan = listObjectsSpans [ 0 ] ;
71+ expect ( listObjectsSpan . attributes [ _AWS_S3_BUCKET ] ) . toBe ( dummyBucketName ) ;
72+ expect ( listObjectsSpan . kind ) . toBe ( SpanKind . CLIENT ) ;
7473 } ) ;
7574 } ) ;
7675} ) ;
You can’t perform that action at this time.
0 commit comments