Packages

trait DeltaLogging extends DeltaProgressReporter with DatabricksLogging

Convenience wrappers for logging that include delta specific options and avoids the need to predeclare all operations. Metrics in Delta should respect the following conventions:

  • Tags should identify the context of the event (which shard, user, table, machine, etc).
  • All actions initiated by a user should be wrapped in a recordOperation so we can track usage latency and failures. If there is a significant (more than a few seconds) subaction like identifying candidate files, consider nested recordOperation.
  • Events should be used to return detailed statistics about usage. Generally these should be defined with a case class to ease analysis later.
  • Events can also be used to record that a particular codepath was hit (i.e. a checkpoint failure, a conflict, or a specific optimization).
  • Both events and operations should be named hierarchically to allow for analysis at different levels. For example, to look at the latency of all DDL operations we could scan for operations that match "delta.ddl.%".

Underneath these functions use the standard usage log reporting defined in com.databricks.spark.util.DatabricksLogging.

Linear Supertypes
Known Subclasses
VacuumTableCommand, CheckpointProvider, Checkpoints, Checkpoints, ColumnWithDefaultExprUtils, DeltaAnalysis, DeltaColumnMapping, DeltaColumnMappingBase, DeltaConfigs, DeltaConfigsBase, DeltaErrors, DeltaErrorsBase, DeltaHistoryManager, DeltaHistoryManager, DeltaLog, DeltaLog, DeltaOptions, DeltaRelation, DeltaTableIdentifier, DeltaTableUtils, DeltaTimeTravelSpec, DeltaUnsupportedOperationsCheck, DomainMetadataUtils, GeneratedColumn, IcebergCompat, IcebergCompat, IcebergCompatV1, IcebergCompatV2, IdentityColumn, InCommitTimestampsPreDowngradeCommand, InitialSnapshot, MetadataCleanup, OptimisticTransaction, OptimisticTransactionImpl, PreloadedCheckpointProvider, PreprocessTableMerge, PreprocessTableUpdate, ReadChecksum, RecordChecksum, Snapshot, Snapshot, SnapshotStateManager, TestReaderWriterFeaturePreDowngradeCommand, TestWriterFeaturePreDowngradeCommand, TypeWideningPreDowngradeCommand, UniversalFormat, UpdateExpressionsSupport, V2CheckpointPreDowngradeCommand, V2CheckpointProvider, DeltaCatalog, DeltaTableV2, AlterDeltaTableCommand, AlterTableAddColumnsDeltaCommand, AlterTableAddConstraintDeltaCommand, AlterTableChangeColumnDeltaCommand, AlterTableClusterByDeltaCommand, AlterTableConstraintDeltaCommand, AlterTableDropColumnsDeltaCommand, AlterTableDropConstraintDeltaCommand, AlterTableDropFeatureDeltaCommand, AlterTableReplaceColumnsDeltaCommand, AlterTableSetLocationDeltaCommand, AlterTableSetPropertiesDeltaCommand, AlterTableUnsetPropertiesDeltaCommand, CloneTableBase, CloneTableBaseUtils, CloneTableCommand, ConvertToDeltaCommand, ConvertToDeltaCommand, ConvertToDeltaCommandBase, CreateDeltaTableCommand, DMLWithDeletionVectorsHelper, DeleteCommand, DeletionVectorWriter, DeltaCommand, DeltaReorgTableCommand, DescribeDeltaDetailCommand, DescribeDeltaHistory, DescribeDeltaHistoryCommand, MergeIntoCommand, MergeIntoCommandBase, OptimizeExecutor, OptimizeTableCommand, OptimizeTableCommandBase, ReorgTableForUpgradeUniformHelper, RestoreTableCommand, ShowDeltaTableColumnsCommand, UpdateCommand, VacuumCommand, VacuumCommandImpl, WriteIntoDelta, CDCReader, CDCReaderImpl, RemoveColumnMappingCommand, CatalogFileManifest, ConvertUtils, ConvertUtilsBase, ManualListingFileManifest, MetadataLogFileManifest, ParquetTable, MergeIntoMaterializeSource, DeletionVectorStoredBitmap, DeltaSourceSnapshot, TransactionalWrite, AutoCompact, AutoCompactBase, AutoCompactUtils, GenerateSymlinkManifest, GenerateSymlinkManifestImpl, GenerateSymlinkManifestUtils, HudiConverterHook, IcebergConverterHook, UpdateCatalog, UpdateCatalogBase, DeltaOptimizedWriterExec, ImplicitMetadataOperation, SchemaUtils, ClusteredTableUtils, ClusteredTableUtilsBase, ClusteringColumnInfo, DeltaDataSource, DeltaSink, DeltaSource, DeltaSourceBase, DeltaSourceMetadataEvolutionSupport, DataSkippingReader, DataSkippingReaderBase, PrepareDeltaScan, PrepareDeltaScanBase, PreparedDeltaFileIndex, StatisticsCollection, StatisticsCollection, DelegatingLogStore, DeltaFileOperations, StateCache, NonFateSharingFuture, ZCubeInfo
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeltaLogging
  2. DatabricksLogging
  3. DeltaProgressReporter
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def deltaAssert(check: ⇒ Boolean, name: String, msg: String, deltaLog: DeltaLog = null, data: AnyRef = null, path: Option[Path] = None): Unit

    Helper method to check invariants in Delta code.

    Helper method to check invariants in Delta code. Fails when running in tests, records a delta assertion event and logs a warning otherwise.

    Attributes
    protected
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getCommonTags(deltaLog: DeltaLog, tahoeId: String): Map[TagDefinition, String]
  12. def getErrorData(e: Throwable): Map[String, Any]
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  15. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  18. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  19. def logConsole(line: String): Unit
    Definition Classes
    DatabricksLogging
  20. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  21. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  27. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def recordDeltaEvent(deltaLog: DeltaLog, opType: String, tags: Map[TagDefinition, String] = Map.empty, data: AnyRef = null, path: Option[Path] = None): Unit

    Used to record the occurrence of a single event or report detailed, operation specific statistics.

    Used to record the occurrence of a single event or report detailed, operation specific statistics.

    path

    Used to log the path of the delta table when deltaLog is null.

    Attributes
    protected
  35. def recordDeltaOperation[A](deltaLog: DeltaLog, opType: String, tags: Map[TagDefinition, String] = Map.empty)(thunk: ⇒ A): A

    Used to report the duration as well as the success or failure of an operation on a deltaLog.

    Used to report the duration as well as the success or failure of an operation on a deltaLog.

    Attributes
    protected
  36. def recordDeltaOperationForTablePath[A](tablePath: String, opType: String, tags: Map[TagDefinition, String] = Map.empty)(thunk: ⇒ A): A

    Used to report the duration as well as the success or failure of an operation on a tahoePath.

    Used to report the duration as well as the success or failure of an operation on a tahoePath.

    Attributes
    protected
  37. def recordEvent(metric: MetricDefinition, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, trimBlob: Boolean = true): Unit
    Definition Classes
    DatabricksLogging
  38. def recordFrameProfile[T](group: String, name: String)(thunk: ⇒ T): T
    Attributes
    protected
  39. def recordOperation[S](opType: OpType, opTarget: String = null, extraTags: Map[TagDefinition, String], isSynchronous: Boolean = true, alwaysRecordStats: Boolean = false, allowAuthTags: Boolean = false, killJvmIfStuck: Boolean = false, outputMetric: MetricDefinition = METRIC_OPERATION_DURATION, silent: Boolean = true)(thunk: ⇒ S): S
    Definition Classes
    DatabricksLogging
  40. def recordProductEvent(metric: MetricDefinition with CentralizableMetric, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, trimBlob: Boolean = true): Unit
    Definition Classes
    DatabricksLogging
  41. def recordProductUsage(metric: MetricDefinition with CentralizableMetric, quantity: Double, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, forceSample: Boolean = false, trimBlob: Boolean = true, silent: Boolean = false): Unit
    Definition Classes
    DatabricksLogging
  42. def recordUsage(metric: MetricDefinition, quantity: Double, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, forceSample: Boolean = false, trimBlob: Boolean = true, silent: Boolean = false): Unit
    Definition Classes
    DatabricksLogging
  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  48. def withStatusCode[T](statusCode: String, defaultMessage: String, data: Map[String, Any] = Map.empty)(body: ⇒ T): T

    Report a log to indicate some command is running.

    Report a log to indicate some command is running.

    Definition Classes
    DeltaProgressReporter

Inherited from DatabricksLogging

Inherited from DeltaProgressReporter

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped