dongjoon-hyun commented on a change in pull request #26320: [SPARK-29654][CORE] 
Add configuration to allow disabling registration of static sources to the 
metrics system
URL: https://github.com/apache/spark/pull/26320#discussion_r347100377
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/internal/config/package.scala
 ##########
 @@ -615,6 +615,12 @@ package object config {
     .stringConf
     .createOptional
 
+  private[spark] val METRICS_STATIC_SOURCES_ENABLED =
+    ConfigBuilder("spark.metrics.static.sources.enabled")
 
 Review comment:
   Apache Spark defines like the following.
   ```
   private[spark] object StaticSources {
     /**
      * The set of all static sources. These sources may be reported to from 
any class, including
      * static classes, without requiring reference to a SparkEnv.
      */
     val allSources = Seq(CodegenMetrics, HiveCatalogMetrics)
   }
   ```

----------------------------------------------------------------
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]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to