30,331 questions
0 votes
0 answers
22 views
Datadog APM traces not appearing for AWS Lambda with Node.js despite metrics working
Problem I'm trying to set up Datadog APM tracing for my AWS Lambda functions (Node.js/TypeScript), but traces are not appearing in the Datadog APM UI. Custom metrics are being collected successfully, ...
1 vote
3 answers
138 views
Pass QString in Lambda Function
I want to pass a QString into a lambda slot-function to modify it further. Unfortunately the QString goes out of scope before reaching the slot, so I cannot append text. How can I ensure that the ...
1 vote
1 answer
137 views
Why can't I return type byte in lambda expression in Arrays.setAll
I'm trying to implement a lambda function (for educational purposes) to initiate an array to append to the front of potentially encrypted data to save information like salt and initiation vector, ...
-1 votes
0 answers
34 views
Why are all versions of Lambda@Edge function being modified when I deploy the latest code?
I have a Lambda@Edge function which has 2 versions. Version 1 has non-functional code and version 2 has the latest operational code. What that function does is it fetches an object from an S3 bucket ...
0 votes
1 answer
41 views
Localstack returning error when trying to provision a dotnet8 lambda
I'm trying to provision a lambda on a free localstack instance. As such, I cannot build the lambda as an image and push it into localstack's ECR because ECR is a paid resource. So I'm taking the ...
1 vote
1 answer
53 views
Unexpected behavior when replacing arrow-kt partiallyN function with kotlin lambda
I'm working on updating some Kotlin code that depends on arrow-kt. As part of the migration process from arrow 1.2 to 2.x, I need to get rid of arrow partiallyN() functions and replace them with ...
1 vote
1 answer
45 views
Prisma - Sorting by function applied on a column
I want to use a function in my orderBy clause. To my great surprise I can't find a way in the official documentation to do this without executing raw SQL in Prisma. This is similar to what Python or ...
-1 votes
1 answer
113 views
Standard-conformant explicit capture-by-value in lambda expression?
I'm trying to caputure a variable by value into a lambda, and I want to point out the nature of the by-value capture explicitly, as it is essential for my code to work the way it is intended. My code ...
15 votes
1 answer
1k views
Why can a lambda passed as an argument be used in a constant expression?
Why does this code compile? template<typename Callable> int foo(Callable callable) { static_assert(callable()); return 0; } static const auto r = foo([] { return true; }); Compiler ...
2 votes
2 answers
131 views
Excel function LAMBDA COUNTIF
=LET( Business,B6, All_nationalities,FILTER(Data[Nationality],Data[Business]=Business), Unique_nationalities,UNIQUE(All_nationalities), freq,BYROW(Unique_nationalities,LAMBDA(x,COUNTIF(...
1 vote
2 answers
103 views
Does SONAR's cpp:S5213 rule imply that functions accepting lambdas must be implemented in the .h file?
SONAR's cpp:S5213 rule says that Template parameters should be preferred to "std::function" when configuring behavior at compile time We have tried implementing that by replacing std::...
1 vote
0 answers
53 views
Mongodb not available for my AWS Lambda function
I have tried to import mongodb into my lambda function and I keep getting an error message when I attempt to test it. All the recommended resolutions I have seen assume I am working in an environment ...
0 votes
0 answers
30 views
AWS Lambda with pg Pool and RDS Proxy: "Connection terminated unexpectedly" when processing SQS messages
We are using pg Pool in our Lambda function. Our connectDb function looks like this: const config = { database, user: username, password, max: max_pool, idleTimeoutMillis, ...
0 votes
0 answers
41 views
How do I display my BST using my preorder() and inorder() methods?
I'm doing a programming assignment for my class. One of my programs includes creating a BST with Python within a BST class, and I'm trying to display using preorder() and inorder() functions. My ...
3 votes
1 answer
119 views
Excel LAMBDA + spill
I've created this LAMBDA function and called it STR2ARR (note: yes, I know there are other functions in Excel that can do this, but I'm trying a concept that I want to use in a bigger LET/LAMBDA ...