I want to trace a request which comes to my webservice and sends an sns notification which will trigger a aws lambda function. Any way to create a new span with same trace id in my lambda function.
Asked
Active
Viewed 1,124 times
3
-
I'm absolutely no expert on AWS Lambda but if you ensure that the notification contains proper headers then your Lambda function could reuse it on its side. I'd need to see the code and you'd need to guide me on how all of this stuff works. – Marcin Grzejszczak Jul 14 '17 at 06:42
-
I can send required data to the lambda function. How do I configure sleuth on lambda to read the data and correlate the trace. – user3324360 Jul 14 '17 at 07:13
-
Let's move this discussion to https://gitter.im/spring-cloud/spring-cloud-sleuth – Marcin Grzejszczak Jul 14 '17 at 07:14
-
@MarcinGrzejszczak Do you have any answer? – Joseph K. Strauss Oct 16 '18 at 14:37
1 Answers
0
The best way is to use such an abstraction like Spring Cloud Function (https://github.com/spring-cloud/spring-cloud-function). You can read more about this here https://cloud.spring.io/spring-cloud-static/Finchley.SR1/single/spring-cloud.html#_aws_lambda

Marcin Grzejszczak
- 10,624
- 1
- 16
- 32