@@ -51,16 +51,16 @@ def fn_task():
51
51
assert run_span .parent .span_id == async_span .context .span_id
52
52
assert run_span .context .trace_id == async_span .context .trace_id
53
53
54
- assert async_span .instrumentation_info .name == "apply_async/{0 }" .format (
54
+ assert async_span .instrumentation_info .name == "apply_async/{}" .format (
55
55
opentelemetry .instrumentation .celery .__name__
56
56
)
57
- assert async_span .instrumentation_info .version == "apply_async/{0 }" .format (
57
+ assert async_span .instrumentation_info .version == "apply_async/{}" .format (
58
58
opentelemetry .instrumentation .celery .__version__
59
59
)
60
- assert run_span .instrumentation_info .name == "run/{0 }" .format (
60
+ assert run_span .instrumentation_info .name == "run/{}" .format (
61
61
opentelemetry .instrumentation .celery .__name__
62
62
)
63
- assert run_span .instrumentation_info .version == "run/{0 }" .format (
63
+ assert run_span .instrumentation_info .version == "run/{}" .format (
64
64
opentelemetry .instrumentation .celery .__version__
65
65
)
66
66
@@ -489,9 +489,7 @@ class CelerySuperClass(celery.task.Task):
489
489
490
490
@classmethod
491
491
def apply_async (cls , args = None , kwargs = None , ** kwargs_ ):
492
- return super (CelerySuperClass , cls ).apply_async (
493
- args = args , kwargs = kwargs , ** kwargs_
494
- )
492
+ return super ().apply_async (args = args , kwargs = kwargs , ** kwargs_ )
495
493
496
494
def run (self , * args , ** kwargs ):
497
495
if "stop" in kwargs :
0 commit comments