Skip to content

Commit 11cbdbf

Browse files
committed
Clean up commented code
1 parent 088fdb1 commit 11cbdbf

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

newrelic/hooks/application_celery.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,6 @@ def task_info(instance, *args, **kwargs):
6464
return task_name, task_source
6565

6666

67-
# def create_DT_headers_and_attach(wrapped, transaction):
68-
# try:
69-
# request = wrapped and wrapped.request_stack and wrapped.request_stack.top
70-
# original_headers = getattr(request, "headers", None) or vars(request)
71-
# dt_headers = MessageTrace.generate_request_headers(transaction)
72-
# if dt_headers:
73-
# if not original_headers:
74-
# wrapped.request.headers = dict(dt_headers)
75-
# else:
76-
# dt_headers.update(original_headers)
77-
# wrapped.request.headers = dt_headers = dict(dt_headers)
78-
# # original_headers.update(dict(dt_headers))
79-
# # wrapped.request.headers = original_headers
80-
81-
# except Exception:
82-
# pass
83-
84-
# return wrapped
85-
86-
8767
def wrap_task_call(wrapped, instance, args, kwargs):
8868
transaction = current_transaction(active_only=False)
8969

0 commit comments

Comments
 (0)