Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
remove elastic APM left-overs (closes #47) (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldruschk authored Jun 6, 2020
1 parent e22f8d1 commit 2d97b8c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/enochecker/checkerservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import collections
import json
import logging
import sys
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Tuple, Type, Union

from flask import Flask, Response, jsonify, request
Expand All @@ -12,18 +11,13 @@
from .results import Result
from .utils import snake_caseify

# from elasticapm.contrib.flask import ElasticAPM

if TYPE_CHECKING:
from .enochecker import BaseChecker

logging.basicConfig(level=logging.DEBUG)
logger = logging.Logger(__name__)
logger.setLevel(logging.DEBUG)

# ElasticSearch performance monitoring
# apm = ElasticAPM()

Optional = collections.namedtuple("Optional", "key type default")
Required = collections.namedtuple("Required", "key type")

Expand Down Expand Up @@ -352,9 +346,4 @@ def init_service(checker: Type["BaseChecker"]) -> Flask:

print(service_info())

if "run" not in sys.argv:
# ElasticSearch Performance Monitoring (disabled on commandline)
# apm.init_app(app, service_name=checker.__name__.split("Checker")[0]) # secret_token=SECRET)
pass

return app # Start service using service.run(host="0.0.0.0")

0 comments on commit 2d97b8c

Please sign in to comment.