Interface SpannerOptions.SpannerEnvironment (6.102.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 6.102.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   interface  SpannerOptions . SpannerEnvironment  
  The environment to read configuration values from. The default implementation uses environment
 variables.
Methods
   
  getDefaultExperimentalHostCredentials() 
  
    
public   default   GoogleCredentials   getDefaultExperimentalHostCredentials ()  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.auth.oauth2.GoogleCredentials  
     
  
  getMonitoringHost() (deprecated) 
  
    
public   default   String   getMonitoringHost ()  
  
Obsolete 
This will be removed in an upcoming version without a major version bump. You should use universalDomain to configure the built-in metrics endpoint for a partner universe. 
This feature is stable for usage in this major version, but may be deprecated in a future release.
 
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getOptimizerStatisticsPackage() 
  
    
public   default   String   getOptimizerStatisticsPackage ()  
  The optimizer statistics package to use. Must return an empty string to indicate that no
 value has been set.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getOptimizerVersion() 
  
    
public   default   String   getOptimizerVersion ()  
  The optimizer version to use. Must return an empty string to indicate that no value has been
 set.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  isEnableApiTracing() 
  
    
public   default   boolean   isEnableApiTracing ()  
  
  isEnableBuiltInMetrics() 
  
    
public   default   boolean   isEnableBuiltInMetrics ()  
  
  isEnableDirectAccess() 
  
    
public   default   boolean   isEnableDirectAccess ()  
  
  isEnableEndToEndTracing() 
  
    
public   default   boolean   isEnableEndToEndTracing ()  
  
  isEnableExtendedTracing() 
  
    
public   default   boolean   isEnableExtendedTracing ()  
  
  isEnableGRPCBuiltInMetrics() 
  
    
public   default   boolean   isEnableGRPCBuiltInMetrics ()  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]