-
Notifications
You must be signed in to change notification settings - Fork 62
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
chore: upgrade for opentelemtry js v0.12.0 #189
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,7 @@ describe('transform', () => { | |
}); | ||
|
||
it('should drop unknown attribute types', () => { | ||
// @ts-expect-error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test is asserting that unsupported attribute types (like object here) are dropped, but it creates a TS error since it is not allowed. In this case, we expect the TS error but want to validate the behavior too |
||
readableSpan.attributes.testUnknownType = { message: 'dropped' }; | ||
const result = transformer(readableSpan); | ||
assert.deepStrictEqual(result.attributes!.droppedAttributesCount, 1); | ||
|
@@ -172,6 +173,7 @@ describe('transform', () => { | |
}, | ||
attributes: { | ||
testAttr: 'value', | ||
// @ts-expect-error | ||
droppedAttr: {}, | ||
}, | ||
}); | ||
|
@@ -230,6 +232,7 @@ describe('transform', () => { | |
name: 'something happened', | ||
attributes: { | ||
error: true, | ||
// @ts-expect-error | ||
dropped: {}, | ||
}, | ||
time: [1566156729, 809], | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
just curious, where did this change come from?
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.
They changed the interface in the SDK: open-telemetry/opentelemetry-js#1439