Skip to content

Conversation

@bmoffatt
Copy link
Collaborator

@bmoffatt bmoffatt commented Feb 6, 2026

Issue #, if available:

Related to #209

Description of changes:

I was doing something silly with the Python RIC, and that involved updating it's aws-lambda-cpp version to 0.2.10 (from 0.2.6), and fixing a couple of the patch files that didn't apply. Since I fixed those patches, it seemed fair to apply them upstream too.

This change is effectively the application of https://github.com/aws/aws-lambda-python-runtime-interface-client/blob/main/deps/patches/aws-lambda-cpp-add-xray-response.patch, but changed to make the new constructor parameter optional, and not setting the header if a value wasn't given.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bmoffatt bmoffatt marked this pull request as ready for review February 6, 2026 00:03
@bmoffatt bmoffatt requested a review from maxday February 6, 2026 00:03
…04 -c "apt-get update && apt-get -y install clang-format && clang-format -i src/runtime.cpp include/aws/lambda-runtime/runtime.h"
std::string const& payload,
std::string const& content_type,
bool success,
std::string const& xray_response = "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an overload rather than a default argument.

static invocation_response failure(
std::string const& error_message,
std::string const& error_type,
std::string const& xray_response = "");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an overload instead of a default argument, please!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe Claude picked this approach. Will change it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants