8#include <aws/core/platform/Environment.h>
9#include <aws/core/http/HttpRequest.h>
29 if (awsLambdaFunctionName.empty())
34 if (xAmznTraceIdVal.empty())
41 for (
const char ch : xAmznTraceIdVal)
43 if (ch >= 0x20 && ch <= 0x7e)
45 xAmznTraceIdValEncodedStr << ch;
50 xAmznTraceIdValEncodedStr <<
'%'
51 << std::hex << std::setfill(
'0') << std::setw(2) << std::uppercase
54 << std::dec << std::setfill(
' ') << std::setw(0) << std::nouppercase;
57 xAmznTraceIdVal = xAmznTraceIdValEncodedStr.str();
static void AppendRecursionDetectionHeader(const std::shared_ptr< Aws::Http::HttpRequest > &ioRequest)
AWS_CORE_API Aws::String GetEnv(const char *name)
AWS_CORE_API const char X_AMZN_TRACE_ID_HEADER[]
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
static const char SMITHY_AWS_LAMBDA_FUNCTION_NAME[]
static const char SMITHY_X_AMZN_TRACE_ID[]