-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: document null and undefined attribute values undefined behavior #1650
docs: document null and undefined attribute values undefined behavior #1650
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1650 +/- ##
==========================================
- Coverage 91.37% 91.35% -0.02%
==========================================
Files 165 165
Lines 5042 5042
Branches 1040 1040
==========================================
- Hits 4607 4606 -1
- Misses 435 436 +1
|
@@ -47,14 +47,17 @@ export interface Span { | |||
* Sets a single Attribute with the key and value passed as arguments. | |||
* | |||
* @param key the key for this attribute. | |||
* @param value the value for this attribute. | |||
* @param value the value for this attribute. Setting a value null or | |||
* undefined is invalid and will result in undefined behavior. |
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: could you indent this second line of the JSDoc by 4 spaces to make to be consistent with others, also to make visually clear that it's a continued line.
*/ | ||
setAttribute(key: string, value?: AttributeValue): this; | ||
|
||
/** | ||
* Sets attributes to the span. | ||
* | ||
* @param attributes the attributes that will be added. | ||
* null or undefined attribute values |
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.
ditto
Co-authored-by: Amir Blum <[email protected]>
Fixes #1614