tempo.state.state module

class tempo.state.state.BaseState

Bases: abc.ABC

abstract exists(key: str) → int
static from_conf(state_options: tempo.serve.metadata.StateOptions)
abstract get(key: str) → Optional[Any]
abstract property internal_state
abstract set(key: str, value: str) → Optional[bool]
abstract property state_options
class tempo.state.state.LocalState(state_options: tempo.serve.metadata.StateOptions = StateOptions(state_type=<StateTypes.LOCAL: 'LOCAL'>, key_prefix='', host='', port=''))

Bases: tempo.state.state.BaseState

exists(key: str) → int
get(key: str) → Optional[Any]
property internal_state
set(key: str, value: str) → Optional[bool]
property state_options
class tempo.state.state.RedisState(state_options: tempo.serve.metadata.StateOptions)

Bases: tempo.state.state.BaseState

exists(key: str) → int
get(key: str) → Optional[Any]
property internal_state
set(key: str, value: str) → Optional[bool]
property state_options