Use is_recording flag in jinja, celery, esearch, falcon instrumentations (#1241)

This commit is contained in:
Leighton Chen 2020-10-14 15:07:23 -04:00 committed by alrex
parent 63426e2862
commit efe918b118
1 changed files with 8 additions and 7 deletions

View File

@ -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: