diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/constants.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/constants.py index 7d4db8b5a5..d10e3a8b30 100644 --- a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/constants.py +++ b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/constants.py @@ -5,6 +5,8 @@ class TelemetryConstants: + """Telemetry Constants.""" + APP_INSIGHT_HANDLER_NAME = "AppInsightsHandler" NON_PII_MESSAGE = '[Hidden as it may contain PII]' diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/logging_utilities.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/logging_utilities.py index 8bed2d6cae..3612da1c53 100644 --- a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/logging_utilities.py +++ b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/logging_utilities.py @@ -3,7 +3,6 @@ """Logging utilities for the evaluator.""" - from azure.ml.component.run import CoreRun import platform @@ -235,6 +234,7 @@ def format(self, record: logging.LogRecord) -> str: class CustomLogRecord(logging.LogRecord): """Custom Log Record class for App Insights.""" + def __init__(self, *args, **kwargs): """__init__.""" super().__init__(*args, **kwargs) @@ -243,7 +243,7 @@ def __init__(self, *args, **kwargs): # Step 2: Set the custom LogRecord factory def custom_log_record_factory(*args, **kwargs): - """Custom Log Record Factory for App Insights.""" + """Get CustomLogRecord for App Insights.""" return CustomLogRecord(*args, **kwargs)