Skip to content

Commit 3cba5ee

Browse files
committed
Removed the additonal metrics
1 parent 8755833 commit 3cba5ee

File tree

5 files changed

+0
-296
lines changed

5 files changed

+0
-296
lines changed

nodestream/cli/operations/initialize_logger.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from pythonjsonlogger.jsonlogger import JsonFormatter
66

77
from nodestream.cli.commands.nodestream_command import NodestreamCommand
8-
from nodestream.logging_metrics import MetricsLoggingHandler
98
from nodestream.metrics import Metrics
109

1110
from .operation import Operation
@@ -35,10 +34,6 @@ def record_factory(*args, **kwargs):
3534
logger = logging.getLogger() # Configure the root logger.
3635
logger.handlers[0].setFormatter(formatter)
3736

38-
# Add metrics handler to track log level counts
39-
metrics_handler = MetricsLoggingHandler()
40-
logger.addHandler(metrics_handler)
41-
4237

4338
class InitializeLogger(Operation):
4439
async def perform(self, command: NodestreamCommand) -> Any:

nodestream/logging_metrics.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

nodestream/metrics.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ def tick(self):
9393
)
9494
FATAL_ERRORS = Metric("fatal_errors", "Number of fatal errors", accumulate=True)
9595

96-
# Logging metrics
97-
LOG_ERROR_COUNT = Metric(
98-
"log_error_count", "Number of error log messages", accumulate=True
99-
)
100-
LOG_WARNING_COUNT = Metric(
101-
"log_warning_count", "Number of warning log messages", accumulate=True
102-
)
103-
LOG_INFO_COUNT = Metric(
104-
"log_info_count", "Number of info log messages", accumulate=True
105-
)
106-
LOG_DEBUG_COUNT = Metric(
107-
"log_debug_count", "Number of debug log messages", accumulate=True
108-
)
109-
11096
NODES_UPSERTED = Metric(
11197
"nodes_upserted", "Number of nodes upserted to the graph", accumulate=True
11298
)

tests/unit/logging/test_logging_metrics.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/unit/test_logging_metrics.py

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)