igreenfield edited a comment on pull request #28629:
URL: https://github.com/apache/spark/pull/28629#issuecomment-634231788
@cloud-fan Do you have an idea where in the code is the first place we can
add it?
I thought to add in `SparkSession.getOrCreate`
```scala
def getOrCreate(): SparkSession = synchronized {
assertOnDriver()
// Get the session from current thread's active session.
var session = activeThreadSession.get()
if ((session ne null) && !session.sparkContext.isStopped) {
applyModifiableSettings(session)
MDC.put("appName", session.conf.get("spark.app.name", ""))
MDC.put("appId", session.conf.get("spark.app.id", ""))
return session
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]