-
Notifications
You must be signed in to change notification settings - Fork 97
Enforce Links limit #331
Enforce Links limit #331
Conversation
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
==========================================
- Coverage 94.95% 94.95% -0.01%
==========================================
Files 120 120
Lines 8213 8281 +68
Branches 732 737 +5
==========================================
+ Hits 7799 7863 +64
- Misses 414 418 +4
Continue to review full report at Codecov.
|
{value: 'boolValue', boolValue: true} | ||
} | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have checked the drop counts for links earlier but it would nice to check that oldest links is removed. you can either add this is as part of this or where you test the dropLinkCount.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Point! We already have asset check here https://github.com/census-instrumentation/opencensus-node/pull/331/files#diff-0ab7878c00c0a6393dd66fd59e796156R482 for the links. Basically, it doesn't contain a dropped link object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per our conversation, this is already taken care of in previous test 'should adapt a span correctly' on line 320.
so ignore the comment.
'my_annotation', | ||
{myString: 'bar', myNumber: 123, myBoolean: true}); | ||
|
||
// Metric Event |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "Message event"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 34ea4cf
|
||
// Metric Event | ||
const timeStamp = 123456789; | ||
rootSpan.addMessageEvent('MessageEventTypeSent', 'ffff', timeStamp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, why is this 'MessageEventTypeSent' and not just 'SENT'?
This would be for a follow up PR, but what would you think about adding enums for span kind, message event type and link type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is legacy code, I am not sure rational behind this. Created an issue to track this -> #333. Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This PR will address the second part (enforce limits on links) of #316