Replies: 1 comment 3 replies
-
Hey there @thailow
Correct, the Lambda file system is not writable. Any logging should be done via STDOUT. We ensure this is done for Rails & any other gems using these hacks (https://github.com/customink/lamby/blob/master/lib/lamby/logger.rb) to the Logger object in Lamby. Are you using Lamby? If not, you need to make sure your Rails and other loggers write to STDOUT or do the hack we did to Logger to ensure this. Note, we set the (assumed STDOUT) Rails logger to the active job logger here. https://github.com/customink/lambdakiq/blob/main/lib/lambdakiq/railtie.rb#L8
I took a look at the gem. It does nothing special with logging. Seems to require a persistent store for the data. So I think your issue is either in the Rails logger and hence ActiveJob's logger. See links above.
Can you share why you need that gem? This gem has built in Observability and Metrics with CloudWatch (again via STDOUT) to the Lambda log. See details here https://github.com/customink/lambdakiq#observability-with-cloudwatch |
Beta Was this translation helpful? Give feedback.
-
Hi @metaskills,
I am trying to include lambdakiq in my lamby project. However, I am facing two exceptions which I do not know how to handle. Maybe you can help (would be greatly appreciated).
Thanks! (Did not post that in issues since I guess it's just me doing sth. wrong..)
Beta Was this translation helpful? Give feedback.
All reactions