GoogleCloudPlatform / GoogleCloudPlatform/fda-mystudies

ensure error reporting follows the GCP expected format

Open
#970 0 comments 0 reactions 0 assignees View on GitHub
P2 Tech debt UX
Dominant language
Java
Stars
68
Forks
42
PR merge metrics
No merged PRs in 30d

Description

in GKE logs sent to stdout and stderr are sent to Cloud Logging, original log entry's severity level is not retained.
Spring Boot uses Slf4J logging API and Logback logger by default. You can user [Spring Cloud GCP's Logging Starter](https://cloud.spring.io/spring-cloud-static/spring-cloud-gcp/current/reference/html/#stackdriver-logging) to use pre-configured Logback appenders to produce Structured JSON logs, or send the log via the Cloud Logging API.

see https://spring-gcp.saturnism.me/app-dev/observability/logging#logback for more detail

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the GKE stdout and stderr logging path and the linked Spring Cloud GCP Logging Starter and Logback guidance. Determine how Spring Boot's Slf4J and Logback configuration should preserve the original severity in Cloud Logging, then verify that emitted entries use the expected GCP format and retain severity.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, java, spring-boot
Domain
cloud, observability-sre
Issue type
Feature
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.