mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-01 09:13:23 +08:00
10 lines
271 B
Python
10 lines
271 B
Python
from ddtrace import Pin
|
|
|
|
if __name__ == '__main__':
|
|
# have to import celery in order to have the post-import hooks run
|
|
import celery
|
|
|
|
# now celery.Celery should be patched and should have a pin
|
|
assert Pin.get_from(celery.Celery)
|
|
print('Test success')
|