tecton.LoggingConfig

class tecton.LoggingConfig(sample_rate=1.0, log_effective_times=False)

Configuration used to describe feature and request logging for Feature Services.

Parameters
  • sample_rate (float) – (Optional, default 1.0) The rate of logging features. Must be between (0, 1]

  • log_effective_times (bool) – (Optional) Whether to log the timestamps of the last update of the logged feature values

An example of LoggingConfig declaration as part of FeatureService

from tecton import FeatureService, LoggingConfig

# LoggingConfig is normaly used as a named argument parameter to a FeatureService instance definition.
my_feature_service = FeatureService(
    name="An example of Feature Service"
    # Other named arguments
    ...
    # A LoggingConfig instance
    logging=LoggingConfig(
            sample_rate=0.5,
            log_effective_times=False,
    )
    ...
)

Methods

__init__

Initialize self.

__init__(sample_rate=1.0, log_effective_times=False)

Initialize self. See help(type(self)) for accurate signature.