Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackdriverJsonLayout timestampNanos timestampSeconds support #83

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

LeeGilbert
Copy link
Contributor

StackdriverJsonLayout in spring-cloud-gcp-logging writes a nano timestamp keyed by "timestampNanos".
Add "timestampNanos" to list of timestampKeys in Timestamp.kt
to fix null appearing in Console and fully support Google Cloud Logging console format with Logback.

@LeeGilbert
Copy link
Contributor Author

Thanks for commenting. I've added logic to parse seconds and nanos, and a test.

@LeeGilbert LeeGilbert changed the title StackdriverJsonLayout timestampNanos support StackdriverJsonLayout timestampNanos timestampSeconds support Oct 16, 2024
Copy link
Owner

@orangain orangain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙆

@orangain orangain merged commit f7ab04e into orangain:main Oct 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants