Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkanal committed Jun 6, 2023
1 parent 817b76b commit e402fde
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,11 @@ describe('DocumentLoad Instrumentation', () => {
enabled: false,
applyCustomAttributesOnSpan: {
resourceFetch: (span, resource) => {
console.log(resource.connectEnd - resource.connectStart);
span.setAttribute('custom-key', 'custom-val');
span.setAttribute('resource.tcp.duration_ms', resource.connectEnd - resource.connectStart,)
span.setAttribute(
'resource.tcp.duration_ms',
resource.connectEnd - resource.connectStart
);
},
},
});
Expand All @@ -725,8 +727,14 @@ describe('DocumentLoad Instrumentation', () => {
resourceSpan2.attributes['custom-key'],
'custom-val'
);
assert.strictEqual(resourceSpan1.attributes['resource.tcp.duration_ms'], 0)
assert.strictEqual(resourceSpan2.attributes['resource.tcp.duration_ms'], 0)
assert.strictEqual(
resourceSpan1.attributes['resource.tcp.duration_ms'],
0
);
assert.strictEqual(
resourceSpan2.attributes['resource.tcp.duration_ms'],
0
);
assert.strictEqual(exporter.getFinishedSpans().length, 4);
done();
});
Expand Down

0 comments on commit e402fde

Please sign in to comment.