Skip to content

[SPARK-47578][R] Migrate RPackageUtils with variables to structured logging framework#46815

Closed
dtenedor wants to merge 1 commit intoapache:masterfrom
dtenedor:log-migration-r-package-utils
Closed

[SPARK-47578][R] Migrate RPackageUtils with variables to structured logging framework#46815
dtenedor wants to merge 1 commit intoapache:masterfrom
dtenedor:log-migration-r-package-utils

Conversation

@dtenedor
Copy link
Contributor

What changes were proposed in this pull request?

Migrate logging with variables of the Spark RPackageUtils module to structured logging framework. This transforms the log* entries of APIs like this:

def logWarning(msg: => String): Unit

to

def logWarning(entry: LogEntry): Unit

Why are the changes needed?

To enhance Apache Spark's logging system by implementing structured logging.

Does this PR introduce any user-facing change?

Yes, Spark core logs will contain additional MDC

How was this patch tested?

Compiler and scala style checks, as well as code review.

Was this patch authored or co-authored using generative AI tooling?

Brief but appropriate use of GitHub copilot

@dtenedor
Copy link
Contributor Author

cc @gengliangwang

@github-actions github-actions bot added the CORE label May 30, 2024
Copy link
Member

Choose a reason for hiding this comment

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

@dtenedor I planned to skip this one since we disabled the structured logging for sparkR shell in https://github.com/apache/spark/pull/46383/files#diff-f8564df81d845c0cd2f621bc2ed22761cbf9731f28cb2828d9cbd0491f4e7584R74.
But since you made the changes, we can still merge this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, and sorry for missing it :)

@dtenedor dtenedor requested a review from gengliangwang May 31, 2024 00:38
@gengliangwang
Copy link
Member

Thanks, merging to master

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants