Skip to content

Commit

Permalink
try to leverage existed env variable instead of introducing new one
Browse files Browse the repository at this point in the history
Signed-off-by: Tsai, Louie <[email protected]>
  • Loading branch information
louie-tsai committed Feb 1, 2025
1 parent 30e3dea commit 21c2ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from comps.cores.mega.micro_service import MicroService, register_microservice, opea_microservices

# Telemetry
if os.getenv("ENABLE_OPEA_TELEMETRY", "false").lower() == "true":
if os.getenv("TELEMETRY_ENDPOINT") is not None:
from comps.cores.telemetry.opea_telemetry import opea_telemetry

# Common
Expand Down

0 comments on commit 21c2ef9

Please sign in to comment.