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
fix(AWS Invocation): Ensure proper log formatting for invoke
#11189
Conversation
Codecov Report
@@ Coverage Diff @@
## main #11189 +/- ##
=======================================
Coverage 86.01% 86.01%
=======================================
Files 315 315
Lines 13273 13275 +2
=======================================
+ Hits 11417 11419 +2
Misses 1856 1856
Continue to review full report at Codecov.
|
lib/plugins/aws/invoke.js
Outdated
@@ -113,6 +113,14 @@ class AwsInvoke { | |||
); | |||
const logResult = Buffer.from(invocationReply.LogResult, 'base64').toString(); | |||
logResult.split('\n').forEach((line) => { | |||
if ( | |||
// TODO: Switch to .startsWith after otel extension is improved | |||
line.includes('⚡.') || |
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.
It's long time since we do not issue such logs with extension, so I think it can safely be removed
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.
👍
@@ -13,7 +13,7 @@ chai.use(require('sinon-chai')); | |||
|
|||
const expect = chai.expect; | |||
|
|||
describe('test/unit/lib/plugins/aws/invoke.test.js', () => { | |||
describe.only('test/unit/lib/plugins/aws/invoke.test.js', () => { |
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.
Let's not commit this change (ideally it should be picked by linter)
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.
ouch, good catch
f363997
to
161fd48
Compare
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.
👍
Closes: #11188