Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

structured logging: opt-out automatic population of metadata when writing log entries #689

Description

@minherz

Is your feature request related to a problem? Please describe.
Support the mode of work when logging library does not auto-populate log entries with additional metadata details.

Describe the solution you'd like
All fields except to payload of all log entries passed to the write() API call will be auto-populated unless they already have values. A caller should be able to opt-out this behavior by providing a WriteOption.autoPopulateMetadata() flag or by using LoggingOptions.Builder.setAutoPopulateMetadata() to opt-out on the level of the Logging instance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging API.lang: javaIssues specific to Java.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions