We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760673f commit 546be34Copy full SHA for 546be34
opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py
@@ -125,17 +125,4 @@ def initialize():
125
)
126
127
128
-if (
129
- hasattr(sys, "argv")
130
- and sys.argv[0].split(path.sep)[-1] == "celery"
131
- and "worker" in sys.argv[1:]
132
-):
133
- from celery.signals import worker_process_init # pylint:disable=E0401
134
-
135
- @worker_process_init.connect(weak=False)
136
- def init_celery(*args, **kwargs):
137
- initialize()
138
139
140
-else:
141
+initialize()
0 commit comments