Use is_recording flag in jinja, celery, esearch, falcon instrumentations (#1241)
This commit is contained in:
parent
63426e2862
commit
efe918b118
|
|
@ -118,6 +118,7 @@ def _wrap_cmd(tracer, cmd, wrapped, instance, args, kwargs):
|
||||||
_CMD, kind=SpanKind.INTERNAL, attributes={}
|
_CMD, kind=SpanKind.INTERNAL, attributes={}
|
||||||
) as span:
|
) as span:
|
||||||
try:
|
try:
|
||||||
|
if span.is_recording():
|
||||||
if not args:
|
if not args:
|
||||||
vals = ""
|
vals = ""
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue