JetBrains / JetBrains/kotless

Logs of a Scheduled lambda doesn't appear in CloudWatch

Open
#82 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Given following Scheduled lambda:
```kotlin
object Analyser {
private val logger = LoggerFactory.getLogger(Analyser::class.java)

@Scheduled(cron = everyMinute, id = "analyseOffers")
fun analyseOffers() {
logger.warn("Analysing offers...")
TODO("implement analysing offers.")
}
}
```
in opposite to calls over API gateways the logging in this case doesn't apper in the cloud wathc logs. Neither info about TODO exception appears there. What do I do wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the scheduled Kotlin Lambda and compare its CloudWatch behavior with an API Gateway invocation. Inspect the scheduled function's logger output and the TODO exception, then verify whether either appears in CloudWatch. Done means the scheduled invocation's logs and failures are visible there, with the cause documented or fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kotlin
Domain
devops, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.