Skip to content

Commit

Permalink
SAASMLOPS-1208 drop the version check
Browse files Browse the repository at this point in the history
Signed-off-by: Brijesh Vora <brijesh.vora@sailpoint.com>
  • Loading branch information
brijesh-vora-sp committed Mar 19, 2024
1 parent 03ffaed commit e6b527b
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions sdk/python/feast/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,19 @@

_is_enabled = os.getenv(FEAST_USAGE, default=DEFAULT_FEAST_USAGE_VALUE) == "True"

if sys.version_info >= (3, 9):
_md5 = hashlib.md5(
",".join(
sorted([k for k in os.environ.keys() if not k.startswith("FEAST")])
).encode(),
usedforsecurity=False,
).hexdigest()
else:
_md5 = hashlib.md5(
",".join(
sorted([k for k in os.environ.keys() if not k.startswith("FEAST")])
).encode()
).hexdigest()

_constant_attributes = {
"project_id": "",
"session_id": str(uuid.uuid4()),
"installation_id": None,
"version": get_version(),
"python_version": platform.python_version(),
"platform": platform.platform(),
"env_signature": _md5,
"env_signature": hashlib.md5(
",".join(
sorted([k for k in os.environ.keys() if not k.startswith("FEAST")])
).encode(),
usedforsecurity=False,
).hexdigest(),
}

APPLICATION_NAME = "feast-dev/feast"
Expand Down

0 comments on commit e6b527b

Please sign in to comment.