This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
from django.core.management.base import BaseCommand | |
from opentelemetry import trace | |
from opentelemetry.instrumentation.django_extras.package import _instruments | |
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor | |
_COMMAND_TRACE_PREFIX = "command/" | |
_DJANGO_COMMAND_KEY = "django.command" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections.abc import Callable | |
from mypy.nodes import MypyFile | |
from mypy.plugin import FunctionContext, MethodContext, Plugin | |
from mypy.types import CallableType, Instance, Type, get_proper_type | |
DJANGO_TASK_FULLNAME = "celery.contrib.django.task.DjangoTask" | |
class CeleryPlugin(Plugin): |
OlderNewer