Skip to content

Commit ddf0839

Browse files
committed
wip
1 parent 1522b44 commit ddf0839

File tree

1 file changed

+9
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado

1 file changed

+9
-0
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,16 @@ def get_excluded_urls():
7171
return ExcludeList(urls)
7272

7373

74+
def get_traced_request_attrs():
75+
attrs = configuration.Configuration().TORNADO_TRACED_REQUEST_ATTRS or ""
76+
if attrs:
77+
attrs = [attr.strip() for attr in attrs.split(",")]
78+
else:
79+
attrs = []
80+
return attrs
81+
7482
_excluded_urls = get_excluded_urls()
83+
_traced_attrs = get_traced_request_attrs()
7584

7685

7786
class TornadoInstrumentor(BaseInstrumentor):

0 commit comments

Comments
 (0)