File tree 1 file changed +2
-16
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation
1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import sys
16
15
from logging import getLogger
17
- from os import environ , path
16
+ from os import environ
18
17
from os .path import abspath , dirname , pathsep
19
18
from re import sub
20
19
@@ -125,17 +124,4 @@ def initialize():
125
124
)
126
125
127
126
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 ()
127
+ initialize ()
You can’t perform that action at this time.
0 commit comments