Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove celery&redis instrumentor #1399

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/bk-login/bklogin/monitoring/tracing/instrumentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@

from django.conf import settings
from opentelemetry.instrumentation import dbapi
from opentelemetry.instrumentation.celery import CeleryInstrumentor
from opentelemetry.instrumentation.django import DjangoInstrumentor
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor # type: ignore
from opentelemetry.instrumentation.logging import LoggingInstrumentor
from opentelemetry.instrumentation.redis import RedisInstrumentor
from opentelemetry.instrumentation.requests import RequestsInstrumentor

from .hooks import django_request_hook, django_response_hook, requests_response_hook
Expand All @@ -36,10 +34,6 @@ def _instrument(self, **kwargs):
logger.info("otel instructment: requests")
DjangoInstrumentor().instrument(request_hook=django_request_hook, response_hook=django_response_hook)
logger.info("otel instructment: django")
RedisInstrumentor().instrument()
logger.info("otel instructment: redis")
CeleryInstrumentor().instrument()
logger.info("otel instructment: celery")

if getattr(settings, "OTEL_INSTRUMENT_DB_API", False):
import MySQLdb # noqa
Expand Down
Loading