Skip to content

Commit 546be34

Browse files
committed
Remove special support for celery from sitecustomize
This is not required anymore after merging open-telemetry/opentelemetry-python#2242
1 parent 760673f commit 546be34

File tree

1 file changed

+1
-14
lines changed
  • opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation

1 file changed

+1
-14
lines changed

opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,4 @@ def initialize():
125125
)
126126

127127

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()
128+
initialize()

0 commit comments

Comments
 (0)