Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove env key prefix filter (#87)

authored by

Chenyu and committed by
GitHub
96c249bb 7cda5574

+2 -24
+2 -24
osprey_worker/src/osprey/worker/lib/config/__init__.py
··· 7 7 ConfigT = Dict[str, Any] 8 8 ConfigurationCallback = Callable[['Config'], None] 9 9 10 - DEFAULT_ENV_PREFIXES = ( 11 - 'ENV', 12 - 'CASSANDRA_', 13 - 'CLOUDFLARE_', 14 - 'DATADOG_', 15 - 'DD_', 16 - 'DEBUG', 17 - 'OSPREY_', 18 - 'DRUID_', 19 - 'HM_', # Hash Match 20 - 'POSTGRES_', 21 - 'SENTRY_', 22 - 'osprey_', 23 - 'TRACING_', 24 - 'PUBSUB_', 25 - 'DATA_', # For BigTables owned by Data Infra (used in get_bigtable_value.py UDF) 26 - 'TESTING', 27 - 'QDRANT_', 28 - 'VD_', 29 - 'SAFETY_', 30 - 'SNOWFLAKE_', 31 - ) 32 10 33 11 DEFAULT_CONFIGURATION_CALLBACKS: Tuple[ConfigurationCallback] = (tracing_callback,) 34 12 ··· 56 34 for configuration_callback in pending_configuration_callbacks: 57 35 configuration_callback(self) 58 36 59 - def configure_from_env(self, prefixes: Tuple[str, ...] = DEFAULT_ENV_PREFIXES) -> None: 60 - parsed = config_from_env(key_filter=lambda k: k.startswith(prefixes)) 37 + def configure_from_env(self) -> None: 38 + parsed = config_from_env() 61 39 self.configure(parsed) 62 40 63 41 def unconfigure_for_tests(self) -> None: