diff --git a/lbry/build_type.py b/lbry/build_info.py similarity index 100% rename from lbry/build_type.py rename to lbry/build_info.py diff --git a/lbry/extras/system_info.py b/lbry/extras/system_info.py index 0fc8b2278..68e24f881 100644 --- a/lbry/extras/system_info.py +++ b/lbry/extras/system_info.py @@ -2,7 +2,7 @@ import platform import os import logging.handlers -from lbry import build_type, __version__ as lbrynet_version +from lbry import build_info, __version__ as lbrynet_version log = logging.getLogger(__name__) @@ -19,7 +19,7 @@ def get_platform() -> dict: "os_system": os_system, "lbrynet_version": lbrynet_version, "version": lbrynet_version, - "build": build_type.BUILD, # CI server sets this during build step + "build": build_info.BUILD, # CI server sets this during build step } if d["os_system"] == "Linux": import distro # pylint: disable=import-outside-toplevel diff --git a/lbry/wallet/server/prometheus.py b/lbry/wallet/server/prometheus.py index 84a7a3529..8872b2ae7 100644 --- a/lbry/wallet/server/prometheus.py +++ b/lbry/wallet/server/prometheus.py @@ -2,11 +2,11 @@ from aiohttp import web from prometheus_client import Counter, Info, generate_latest as prom_generate_latest from lbry.wallet.server import util from lbry import __version__ as version -from lbry.build_type import BUILD, COMMIT_HASH +from lbry.build_info import BUILD, COMMIT_HASH NAMESPACE = "wallet_server" -VERSION_INFO = Info('build_info', 'Wallet server build info (e.g. version, commit hash)', namespace=NAMESPACE) +VERSION_INFO = Info('build', 'Wallet server build info (e.g. version, commit hash)', namespace=NAMESPACE) VERSION_INFO.info({'version': version, 'build': BUILD, "commit": COMMIT_HASH}) REQUESTS_COUNT = Counter("requests_count", "Number of requests received", namespace=NAMESPACE)