googleapis / googleapis/google-cloud-java

[java-logging-logback] JsonPayload customization

Open
#12,009 1 comment 0 reactions 1 assignee Claimed by @cindy-peng View on GitHub
api: logging priority: p3
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

We have a requirement to include custom fields in the Cloud Logging JsonPayload, in our case used by our datadog log sink integration for filtering and billing attribution of dataflow job logs.

In the current LoggingAppender implementation the JsonPayload is not modifiable and is already set on the LogEntry.Builder before invoking LoggingEnhancer.

When using Cloud Logging client directly we can build the custom JsonPayload.

Feature request to allow JsonPayload modification either via LoggingEnhancer or Logback encoder or some other mechanism.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.