Skip to content

Commit

Permalink
Remove: sentry support (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola authored Jun 1, 2023
1 parent 4d3cc47 commit cba0360
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 190 deletions.
14 changes: 1 addition & 13 deletions ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from datetime import datetime

from pathlib import Path
from os import geteuid, environ
from os import geteuid

import psutil

Expand All @@ -40,18 +40,6 @@
from ospd_openvas.vthelper import VtHelper
from ospd_openvas.messaging.mqtt import MQTTClient, MQTTDaemon, MQTTSubscriber

SENTRY_DSN_OSPD_OPENVAS = environ.get("SENTRY_DSN_OSPD_OPENVAS")
if SENTRY_DSN_OSPD_OPENVAS:
# pylint: disable=import-error
import sentry_sdk

sentry_sdk.init( # pylint: disable=abstract-class-instantiated
SENTRY_DSN_OSPD_OPENVAS,
traces_sample_rate=1.0,
server_name=environ.get('SENTRY_SERVER_NAME'),
environment=environ.get('SENTRY_ENVIRONMENT'),
)

logger = logging.getLogger(__name__)


Expand Down
Loading

0 comments on commit cba0360

Please sign in to comment.