Skip to content

Commit

Permalink
fix telemetry env usage (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored Feb 19, 2024
1 parent 42b0f4a commit ed06cae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evidently/ui/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from starlette.requests import Request

import evidently
from evidently.telemetry import DO_NOT_TRACK
from evidently.ui.api.security import is_authorized
from evidently.ui.config import Configuration
from evidently.ui.errors import NotEnoughPermissions
Expand All @@ -31,7 +32,7 @@ def event_logger(
evidently.__version__,
url=config.telemetry.url,
token=config.telemetry.token,
enabled=config.telemetry.enabled,
enabled=config.telemetry.enabled and DO_NOT_TRACK is None,
)
yield partial(_event_logger.send_event, config.telemetry.service_name)

Expand Down

0 comments on commit ed06cae

Please sign in to comment.