CloudSnorkel / cdk-github-runners

CDK constructs for self-hosted GitHub Actions runners
https://constructs.dev/packages/@cloudsnorkel/cdk-github-runners/
Apache License 2.0
255 stars 37 forks source link

feat: Logging improvements for internal Lambda functions #551

Closed kichik closed 2 weeks ago

kichik commented 2 weeks ago

Create and share log groups for all of our Lambda functions instead of using the built-in log groups. Switched to structured JSON logging for Lambda functions. This allows for easier debugging with all the relevant logs going to one group. All built-in Log Insights queries created with createLogsInsightsQueries() have been updated accordingly and more queries were added.

There are now three shared log groups:

  1. Runner Image Build Helpers Log for functions related to building runner images like image registration and clean-up
  2. Orchestrator Log for functions that handle GitHub webhook and triggering runners
  3. Setup Log for functions that handle initial setup

Resolves #539

BREAKING CHANGE: CDK 2.123.0 and above is required BREAKING CHANGE: log groups have moved and all Lambda logs have been converted to JSON format